forked from open-algebra/Oasis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bugfix] associativity (open-algebra#46)
* added associativity to Addition for reals and imaginary numbers. * Added Associativity single 'variable' expressions (x, y, etc) * Expanded associativity for 'Add' and added an additional test. * Added associativity for multiplication * Added associativity to multiply. fixed small issue where if there was an expression to the first power would not return the expression. * Added associativity to addition. Fixed int to size_t in add and multiply. * Removed problem divide tests. (Divide relies on unsimplified trees). * Fixed some divide so that associativity-rebalanced trees still works for division. Still have a few more cases to fix. * Fixed remaining divide tests and made sure they were compatible with updated tree rebuilding from vectors. * Somehow I broke the Equals() function. Now I have to figure out how that can be fixed. * Fixed divide and divide tests such that all existing cases work. * Removed excess operator overload in Variable.hpp. * Added in missing exponent simplifying operations in Divide.cpp. * Fixed merge request comments and resolved merge conflicts. --------- Co-authored-by: Matthew McCall <m-mccall+git@outlook.com>
- Loading branch information
1 parent
6edfddb
commit 3ec0dc4
Showing
6 changed files
with
481 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.