fp::fixedpt

Returns fixed point of a function

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

fp::fixedpt(f)

Description

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

Examples

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

Parameters

f

Unary function

Return Values

Unary function.

Was this topic helpful?