Skip to main content

fixed_point

Function fixed_point 

Source
pub fn fixed_point(
    g: impl Fn(f64) -> f64,
    x: f64,
    tol: f64,
    max_iter: usize,
) -> Option<f64>
Expand description

Fixed-point iteration: x_{n+1} = g(x_n).