fasteval 0.2.4

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<(), fasteval::Error> {
    let mut ns = fasteval::EmptyNamespace;

    let val = fasteval::ez_eval("sin(pi()/2)", &mut ns)?;
    assert_eq!(val, 1.0);

    Ok(())
}