This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Returns fixed point of a 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::fixedpt(f) returns the fixed point of the unary function f.

fp::fixedpt is implemented as the Y combinator which is defined as follows:

where the function g is defined as


Example 1

A function computing the Fibonacci numbers is created as a fixed point:

fb2 := (f,n) -> if n <= 2 then 1 else f(n-1) + f(n-2) end:
fib := fp::fixedpt(fp::curry(fb2)):
fib(i) $ i=1..9



Unary function

Return Values

Unary function.

Was this topic helpful?