fasteval3 3.0.1

Fast evaluation of algebraic expressions
Documentation
1
2
3
4
5
6
7
8
9
10
// usage:  cargo run --release --example ns_emptynamespace

fn main() -> Result<(), fasteval3::Error> {
    let mut ns = fasteval3::EmptyNamespace;

    let val = fasteval3::ez_eval("sin(pi()/2)", &mut ns)?;
    assert!((val - 1.0).abs() < f64::EPSILON);

    Ok(())
}