slatec 0.1.0

Safe Rust interface to selected SLATEC numerical routines
1
2
3
4
5
6
7
8
9
//! Narrow link probe for the reviewed PCHIP source closure.

use slatec::pchip::PiecewiseCubicHermite;

fn main() {
    let curve =
        PiecewiseCubicHermite::<f64>::monotone(&[0.0, 1.0], &[0.0, 1.0]).expect("valid PCHIP data");
    let _ = curve.evaluate(0.5).expect("PCHFD");
}