IteratedImage
Returns the final image of a value after iterated application of a function.
Syntax
-
IteratedImage(f, x, n)
-
f
is a function -
x
is any object -
n
is a non-negative integer
-
Description
If f
is a function and x
any object, then IteratedImage(f, x, n)
returns the image of x
under n
successive applications of f
. Hence, IteratedImage(f, x, 0)
returns x
, IteratedImage(f, x, 1)
returns f(x)
, IteratedImage(f, x, 2)
returns f(f(x))
and so on.
Examples
IteratedImage(cos, 1, 100)
0.739085133215