Closed aliang8 closed 7 years ago
Found a few issues with the current set of rules we have. They are mostly trivial and easy to fix.
Needs fixing:
removeAdditionOfZero 2 + 0 + x (should evaluate to 2 + x)
removeAdditionOfZero
2 + 0 + x
removeMultiplicationByNegativeOne 2x * 2 * -1 -> 2 * x * -2 (we should keep the implicit)
removeMultiplicationByNegativeOne
2x * 2 * -1 -> 2 * x * -2
removeMultiplicationByOne 2*1*z^2 (should evaluate to 2*z^2)
removeMultiplicationByOne
2*1*z^2
Found a few issues with the current set of rules we have. They are mostly trivial and easy to fix.
Needs fixing:
removeAdditionOfZero
2 + 0 + x
(should evaluate to 2 + x)removeMultiplicationByNegativeOne
2x * 2 * -1 -> 2 * x * -2
(we should keep the implicit)removeMultiplicationByOne
2*1*z^2
(should evaluate to 2*z^2)