Skip to main content

eval_expression

Function eval_expression 

Source
pub fn eval_expression(expr: &str) -> Result<f64, String>
Expand description

Evaluate a simple infix mathematical expression. Supports: + - * / ^ ( ) sin cos tan sqrt abs pi e