Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Agent-E11 opened this issue Nov 21, 2023 · 1 comment

Comments

@Agent-E11
Copy link
Owner

Agent-E11 commented Nov 21, 2023

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant