FixedPoint(f, expr)
starting with
expr
, iteratively appliesf
until the result no longer changes.
FixedPoint(f, expr, n)
performs at most
n
iterations.
See:
>> FixedPoint(Cos, 1.0)
0.7390851332151607
>> FixedPoint(#+1 &, 1, 20)
21
>> FixedPoint(f, x, 0)
x
Non-negative integer expected.
>> FixedPoint(f, x, -1)
FixedPoint(f, x, -1)
>> FixedPoint(Cos, 1.0, Infinity)
0.739085
FixedPointList, Nest, NestWhile
- ✅ - full supported