|
@@ -9,7 +9,7 @@ from .powers import match_add_exponents, match_subtract_exponents, \
|
|
|
from .numerics import match_divide_numerics, match_multiply_numerics
|
|
from .numerics import match_divide_numerics, match_multiply_numerics
|
|
|
from .fractions import match_constant_division, match_add_constant_fractions, \
|
|
from .fractions import match_constant_division, match_add_constant_fractions, \
|
|
|
match_expand_and_add_fractions
|
|
match_expand_and_add_fractions
|
|
|
-from .negation import match_negate_group
|
|
|
|
|
|
|
+from .negation import match_negate_group, match_negated_division
|
|
|
|
|
|
|
|
RULES = {
|
|
RULES = {
|
|
|
OP_ADD: [match_add_constant_fractions, match_combine_polynomes, \
|
|
OP_ADD: [match_add_constant_fractions, match_combine_polynomes, \
|
|
@@ -17,7 +17,7 @@ RULES = {
|
|
|
OP_MUL: [match_multiply_numerics, match_expand, match_add_exponents, \
|
|
OP_MUL: [match_multiply_numerics, match_expand, match_add_exponents, \
|
|
|
match_expand_and_add_fractions],
|
|
match_expand_and_add_fractions],
|
|
|
OP_DIV: [match_subtract_exponents, match_divide_numerics, \
|
|
OP_DIV: [match_subtract_exponents, match_divide_numerics, \
|
|
|
- match_constant_division],
|
|
|
|
|
|
|
+ match_constant_division, match_negated_division],
|
|
|
OP_POW: [match_multiply_exponents, match_duplicate_exponent, \
|
|
OP_POW: [match_multiply_exponents, match_duplicate_exponent, \
|
|
|
match_remove_negative_exponent, match_exponent_to_root, \
|
|
match_remove_negative_exponent, match_exponent_to_root, \
|
|
|
match_extend_exponent],
|
|
match_extend_exponent],
|