Failed to substitute variables in text

Cecilia Lucía Gigena shared this question 5 months ago
Answered

Hi, I am using this command:


Sequence(Text("\frac{1}{n}", (0, 1 / n), true, true, -1, 0), n, 0, 10, 1)


One of the "true" says: "yes, do LaTex". That's working fine.

and the other one is supposed to say "yes, substitute n for its value" (which would be: first "1", second "2", etc)... but it failed to substitute n and it just says "n".

This is the list of points where it has been graphed: (0,1), (0,1/2), (0,1/3)... And I want the first one to say 1/1, the second one to say 1/2, etc.

Comments (3)

photo
1

Sequence(Text("\frac{1}{"+n+"}", (0, 1 / n), true, true, -1, 0), n, 0, 10, 1)

photo
1

Thanks! That works. I still have a doubt:

If I type:


Sequence(Text("\frac{1}{"+n+"}", (0, 1 / n), false, true, -1, 0), n, 0, 10, 1)


it graphs exactly the same. So what does this boolean do?

photo
1

Try with something like f(x) = a x^2

© 2021 International GeoGebra Institute