Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Functional Programming > Functional Iteration >
Mathematica > Core Language > Procedural Programming > Looping Constructs > Functional Iteration >

FixedPoint

FixedPoint[f, expr]
starts with expr, then applies f repeatedly until the result no longer changes.
  • FixedPoint[f, expr, n] stops after at most n steps.
  • FixedPoint always returns the last result it gets.
  • FixedPoint[f, expr] applies SameQ to successive pairs of results to determine whether a fixed point has been reached.
Find a value x such that cos(x)=x:
Fixed point of an integer-valued function:
Repeated application of a rule until the result no longer changes:
Numerical fixed point of a function:
Fixed point of a repeated transformation:
Stop after at most 10 steps:
Stop as soon as successive iterations differ by less than 10^(-10):
Perform exact arithmetic, but use a numerical comparison function:
Find using Newton's method:
Fixed point of a complex iteration:
Matrix-multiplication convergence:
Root of the current directory tree (the result will depend on computer system):
Repeated differentiation:
Find the minimum of (x-1)^2+y^2 with the steepest-descent method (vector notation):
Component notation:
Evaluate combinators [more info]:
Connected components in a graph:
FixedPoint gives the last element of FixedPointList:
Apply rules repeatedly until the result no longer changes using ReplaceRepeated (//.):
FixedPoint is equivalent to a particular choice of arguments of NestWhile:
Calculations may not converge in a finite number of steps:
Providing a maximum number of iterations will guarantee termination:
Using a numerical test for convergence works in this case as well:
New in 1 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team