Repeated composition of function
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
fp::nest(f,n) returns the
repeated composition of the function
Thus, given the function
the identity function
0 and otherwise the function
fp::nest is obsolete, one should
@@ operator or its functional form
_fnest instead. It is
only supported for compatibility with former versions of MuPAD®.
Apply the 3-fold repeated composition of
Numerically finding a fixed point of the function
cos by repeated application:
p :=fp::nest(cos, 100)(1.0): p, cos(p)