pub trait RootFunction {
// Required methods
fn evaluate(&self, x: f64) -> f64;
fn derivative(&self, x: f64) -> f64;
}Expand description
Root finding function trait
Required Methods§
Sourcefn derivative(&self, x: f64) -> f64
fn derivative(&self, x: f64) -> f64
Evaluate derivative f’(x)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".