Fixed-Point Iteration (fixed_point_iterat​ion)

version 5.0.0 (226 KB) by
Calculates the fixed point of a univariate function using fixed-point iteration.

Updated 29 Aug 2021

From GitHub

`fixed_point_iteration`

Calculates the fixed point of a univariate function using fixed-point iteration.

Syntax

`c = fixed_point_iteration(f,x0)`
`c = fixed_point_iteration(f,x0,opts)`

Description

`c = fixed_point_iteration(f,x0)` returns the fixed point of a function specified by the function handle `f`, where `x0` is an initial guess of the fixed point. The default tolerance and maximum number of iterations are `TOL = 1e-12` and `imax = 1e6`, respectively.

`c = fixed_point_iteration(f,x0,opts)` does the same as the syntax above, but allows for the specification of optional solver parameters. `opts` is a struct that has the following fields:

• `imax` → maximum number of iterations
• `return_all` → all intermediate fixed point estimates are returned if set to `true`; otherwise, only the converged fixed point is returned
• `TOL` → tolerance
• `warnings``true` if any warnings should be displayed, `false` if not

Examples and Additional Documentation

• See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
• See "Fixed_Point_Iteration.pdf" (also included with download) for the technical documentation.

Cite As

Tamas Kis (2021). Fixed-Point Iteration (fixed_point_iteration) (https://github.com/tamaskis/fixed_point_iteration-MATLAB/releases/tag/v5.0.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux