Agent-E11 / m_calc_rs

MIT License
0 stars 0 forks source link

`calculate` should simplify expressions if it is unable to calculate fully #5

Open Agent-E11 opened 7 months ago

Agent-E11 commented 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")];
Agent-E11 commented 7 months ago

Could also possibly add a combine_like_terms function (calculate could call this if the expression contains an unassigned Id)