pub fn eval_with_table(
expression: &str,
table: SymTable,
) -> Result<Number, String>Expand description
Evaluates an expression string with a custom symbol table.
ยงExamples
use expr_solver::{num, eval_with_table, SymTable};
let mut table = SymTable::stdlib();
table.add_const("x", num!(42), false).unwrap();
let result = eval_with_table("x * 2", table).unwrap();
assert_eq!(result, num!(84));