semantic-math / math-rules

Manipulate math-ast ASTs based on algebraic rules
MIT License
4 stars 1 forks source link

Adding Polynomials Rule #25

Closed aliang8 closed 7 years ago

aliang8 commented 7 years ago

Added addingPolynomial rule in collect-like-terms.js. Can move to a separate file. Added some test cases.

Should we leave it as 1 y in -2y + 3y or should we change it to y? Also added comments in the code, let me know if it is good or if I should remove it!

kevinbarabash commented 7 years ago

@aliang8 looks good. Thanks for making those changes.