List with parameter / function that is a list -- error after restart

Don Fuchs shared this problem 1 year ago
Solved

A minimal example would be this:


Define

  • f(k,t)=k*t

  • L(t)=Sequence(f(k,t),k,0,5)


This correctly yields L={0t, 1t, 2t, 3t, 4t, 5t} and the 6 lines are plotted, we get a family of curves.


But after reloading the file I get the error: processing of command: Sequence(f(k,t),k,0,5).


Now L={} and there is no plot. (So it's useless to upload an example.)


Who can help?


Comments (3)

photo
1

why not L=Sequence(k*t,k,0,5)? L(t) is not correct syntax

photo
1

Because then he asks to create a slider for k and t and the error "undefined variable t" is prompted.

photo
photo
1

Okay, I think I solved it myself: Using x instead of t works fine!

© 2019 International GeoGebra Institute