Open Agent-E11 opened 7 months ago
e.g.
calculate(vec![Num(2.0), Op(Mul), Num(2.0), Op(Add), Id("a")], _) -> vec![Num(4.0), Op(Add), Id("a")];
Could also possibly add a combine_like_terms function (calculate could call this if the expression contains an unassigned Id)
combine_like_terms
calculate
Id
e.g.