pub trait Intg{
// Provided methods
fn legendre(z: Self, i: i8) -> Self { ... }
fn dlegendre(z: Self, i: i8) -> Self { ... }
fn numint(u: Self, l: Self, f: &dyn Fn(Self) -> Self) -> Self { ... }
fn quad(z: Self) -> Self { ... }
}
Provided Methods§
fn legendre(z: Self, i: i8) -> Self
fn dlegendre(z: Self, i: i8) -> Self
Sourcefn numint(u: Self, l: Self, f: &dyn Fn(Self) -> Self) -> Self
fn numint(u: Self, l: Self, f: &dyn Fn(Self) -> Self) -> Self
Integrate a function between an upper and lower bound (complex numbers are also valid).
§Example
Inte::numint(0.5, 1.5, &my_function_name)
fn quad(z: Self) -> Self
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.