Difference between revisions of "IterationList Command"

From GeoGebra Manual
Jump to: navigation, search
(added v4 - example formatting)
(added v4 - example formatting)
Line 2: Line 2:
 
{{command|function}}
 
{{command|function}}
 
; IterationList[Function, Number x0, Number n]: Gives you a list of length ''n+1'' whose elements are iterations of the function starting with the value ''x0''.
 
; IterationList[Function, Number x0, Number n]: Gives you a list of length ''n+1'' whose elements are iterations of the function starting with the value ''x0''.
: {{Example| 1=After defining <tt>f(x) = x^2</tt> the command <tt>IterationList[f, 3, 2]</tt> gives you the list ''L = {3, 9, 81}''.}}
+
: {{Example| 1=After defining <code>f(x) = x^2</code> the command <code>IterationList[f, 3, 2]</code> gives you the list ''L = {3, 9, 81}''.}}

Revision as of 18:17, 23 February 2011


IterationList[Function, Number x0, Number n]
Gives you a list of length n+1 whose elements are iterations of the function starting with the value x0.
Example: After defining f(x) = x^2 the command IterationList[f, 3, 2] gives you the list L = {3, 9, 81}.
© 2024 International GeoGebra Institute