slatec 0.1.0

Safe Rust interface to selected SLATEC numerical routines
1
2
3
4
fn main() {
    let value = slatec::special::gamma::gamma(0.5).expect("validated gamma input");
    assert!((value - core::f64::consts::PI.sqrt()).abs() < 1.0e-12);
}