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!
Added
addingPolynomial
rule incollect-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 toy
? Also added comments in the code, let me know if it is good or if I should remove it!