numerical 0.1.5

Algorithm for numerical analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub trait Dim1Func<T> {
    /// Evaluate `f(x)` at `x`
    fn eval(&self, x: T) -> T;
}

impl<T, F> Dim1Func<T> for F
where
    F: Fn(T) -> T,
{
    fn eval(&self, x: T) -> T {
        self(x)
    }
}