File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# License, v. 2.0. If a copy of the MPL was not distributed with this
33# file, You can obtain one at https://mozilla.org/MPL/2.0/.
44
5- function simplify (arg:: Monomial )
6- return arg
7- end
8-
9- function simplify (arg:: KrD )
10- return arg
11- end
12-
13- function simplify (arg:: Zero )
5+ function simplify (arg:: Value )
146 return arg
157end
168
@@ -19,11 +11,11 @@ function simplify(arg::UnaryOperation{Op}) where {Op}
1911end
2012
2113function simplify (arg:: BinaryOperation{Mult} )
22- return simplify (Mult (), arg. arg1, arg. arg2)
14+ return simplify (Mult (), simplify ( arg. arg1), simplify ( arg. arg2) )
2315end
2416
2517function simplify (arg:: BinaryOperation{Op} ) where {Op<: AdditiveOperation }
26- return simplify (Op (), arg. arg1, arg. arg2)
18+ return simplify (Op (), simplify ( arg. arg1), simplify ( arg. arg2) )
2719end
2820
2921function simplify (:: Mult , arg1:: Monomial , arg2:: Monomial )
You can’t perform that action at this time.
0 commit comments