# Difference between revisions of "Iteration Command"

From GeoGebra Manual

m (apply <tt></tt> to example commands) |
m (apply <tt></tt> to example commands) |
||

Line 1: | Line 1: | ||

<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | <noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | ||

+ | {{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: After defining <tt>f(x) = x^2</tt> the command <tt>Iteration[f, 3, 2]</tt> gives you the result ''(3<sup>2</sup>)<sup>2</sup> = 81''. | : Example: After defining <tt>f(x) = x^2</tt> the command <tt>Iteration[f, 3, 2]</tt> gives you the result ''(3<sup>2</sup>)<sup>2</sup> = 81''. |

## Revision as of 04:19, 6 November 2010

- 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 command`Iteration[f, 3, 2]`gives you the result*(3*.^{2})^{2}= 81