Trait Intg

Source
pub trait Intg
where Self: FromPrimitive + Num + Copy + Neg<Output = Self>,
{ // 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§

Source

fn legendre(z: Self, i: i8) -> Self

Source

fn dlegendre(z: Self, i: i8) -> Self

Source

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)

Source

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.

Implementations on Foreign Types§

Source§

impl Intg for f32

Source§

impl Intg for f64

Source§

impl Intg for Complex<f32>

Source§

impl Intg for Complex<f64>

Implementors§