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.
New in 1 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team