Difference between revisions of "Iteration Command"
From GeoGebra Manual
m (1 revision: tt => code) |
|||
Line 2: | Line 2: | ||
{{command|function}} | {{command|function}} | ||
; Iteration[Function, Number x0, Number n]: Iterates the function ''n'' times using the given start value ''x0''. | ; Iteration[Function, Number x0, Number n]: Iterates the function ''n'' times using the given start value ''x0''. | ||
− | : {{Example| 1=After defining <code>f(x) = x^2</code> the command <code>Iteration[f, 3, 2]</code> gives you the result ''(3<sup>2</sup>)<sup>2</sup> = 81''.}} | + | : {{Example| 1=After defining <code>f(x) = x^2</code> the command <code>Iteration[f, 3, 2]</code> gives you the result ''(3<sup>2</sup>)<sup>2</sup>=81''.}} |
Revision as of 15:26, 27 February 2011
- Iteration[Function, Number x0, Number n]
- Iterates the function n times using the given start value x0.
- Example: After defining
f(x) = x^2
the commandIteration[f, 3, 2]
gives you the result (32)2=81.