Properties
Similar Topics
Statistics
Comments
13
Participants
2
Subscribers
2
Votes
1
Views
580
Share
How to create recursive sequences in list form?
Answered
I found this super command to create the Fibonacci sequence but the values are separate and I want to form a list of those values.Execute(Join({"f_{1} = 1", "f_{2} = 1"}, Sequence("f_{"+(i + 2) + "} = f_{" + (i+1) + "} + f_{"+ i +"}", i, 1, 10)))
After, This other command say: Create slider(s) for: f_{i}
Sequence(f_{i}, i, 1, 10, 1)
and this other command generate text
Sequence("f_{" + (i) + "}", i, 1, 10, 1)
l1={"f_{1}","f_{2}","f_{3}","f_{4}","f_{5}","f_{6}","f_{7}","f_{8}","f_{9}","f_{10}"}
In this case, I need remove all quotation mark " " so that then it works.
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2020 International GeoGebra Institute
try:
IterationList(a + b, a, b, {1, 2}, 10)
with result l1= {1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144}
link
The first sample in 2 versions (l1with IterationList and l2 with Execute(l2script))
Rest later, if necessary (please give feedback. I think you want use the more easy Execute()variante)
Yes your solutions are correct.
In the example3 I implement a round() because otherwise the floatingpoint error becomes noticeable.
Attached my solutions including IterationList
Note also the external script list in algebra view
The third possibility: recursion in the spreadsheet.
Comments have been locked on this page!