Difference between revisions of "Iteration Command"
From GeoGebra Manual
m |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude> |
{{command|function}} | {{command|function}} | ||
;Iteration[ <Function>, <Start Value>, <Number of Iterations> ] | ;Iteration[ <Function>, <Start Value>, <Number of Iterations> ] |
Revision as of 13:15, 24 July 2015
- Iteration[ <Function>, <Start Value>, <Number of Iterations> ]
- Iterates the function n times using the given start value.
- Example:After defining
f(x) = x^2
the commandIteration[f, 3, 2]
gives you the result (32)2 = 81.
- Example: repeated additionTo obtain the repeated addition of 7 to the number 3:Let
g(x) = x + 7
, thenIteration[g, 3, 4]
yields (((3+7) +7) +7) +7 = 31.