Fixed-Point Iteration (fixed_point_iteration)
fixed_point_iteration
Fixed-point iteration for finding the fixed point of a univariate, scalar-valued function.
Syntax
c = fixed_point_iteration(f,x0)
c = fixed_point_iteration(f,x0,opts)
[c,k] = fixed_point_iteration(__)
[c,k,c_all] = fixed_point_iteration(__)
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.
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 structure with the following fields:
-
k_max
→ maximum number of iterations (defaults to 200) -
return_all
→ returns estimates at all iteration if set totrue
(defaults tofalse
) -
TOL
→ tolerance (defaults to )
[c,k] = fixed_point_iteration(__)
also returns the number of iterations (k
) performed of fixed-point iteration.
[c,k,c_all] = fixed_point_iteration(__)
does the same as the previous syntaxes, but also returns an array (c_all
) storing the fixed point estimates at each iteration. This syntax requires that opts.return_all
be set to true.
Examples and Additional Documentation
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
- See "Root_Finding_Methods.pdf" (also included with download) for the technical documentation.
Citar como
Tamas Kis (2024). Fixed-Point Iteration (fixed_point_iteration) (https://github.com/tamaskis/fixed_point_iteration-MATLAB/releases/tag/v6.2.0), GitHub. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.