RootFinder

Trait RootFinder 

Source
pub trait RootFinder {
    // Required method
    fn find_root<F>(
        &self,
        f: F,
        config: &RootFindingConfig,
    ) -> Result<RootResult, MathError>
       where F: Fn(f64) -> f64;
}
Expand description

Trait for root-finding methods

Required Methods§

Source

fn find_root<F>( &self, f: F, config: &RootFindingConfig, ) -> Result<RootResult, MathError>
where F: Fn(f64) -> f64,

Find a root of the given function

§Arguments
  • f - Function to find root of
  • config - Root-finding configuration
§Returns

Root result with convergence information

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§