|
@@ -10,7 +10,7 @@ from .numerics import match_add_numerics, match_divide_numerics, \
|
|
|
match_multiply_numerics, match_multiply_zero, match_multiply_one, \
|
|
match_multiply_numerics, match_multiply_zero, match_multiply_one, \
|
|
|
match_raise_numerics
|
|
match_raise_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, match_multiply_fractions
|
|
|
from .negation import match_negated_factor, match_negate_polynome, \
|
|
from .negation import match_negated_factor, match_negate_polynome, \
|
|
|
match_negated_division
|
|
match_negated_division
|
|
|
from .sort import match_sort_multiplicants
|
|
from .sort import match_sort_multiplicants
|
|
@@ -23,7 +23,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_multiply_zero,
|
|
match_expand_and_add_fractions, match_multiply_zero,
|
|
|
match_negated_factor, match_multiply_one,
|
|
match_negated_factor, match_multiply_one,
|
|
|
- match_sort_multiplicants],
|
|
|
|
|
|
|
+ match_sort_multiplicants, match_multiply_fractions],
|
|
|
OP_DIV: [match_subtract_exponents, match_divide_numerics,
|
|
OP_DIV: [match_subtract_exponents, match_divide_numerics,
|
|
|
match_constant_division, match_negated_division],
|
|
match_constant_division, match_negated_division],
|
|
|
OP_POW: [match_multiply_exponents, match_duplicate_exponent,
|
|
OP_POW: [match_multiply_exponents, match_duplicate_exponent,
|