瀏覽代碼

Added match_divide_numerics to main execution rules.

Taddeus Kroes 14 年之前
父節點
當前提交
124d547766
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/rules/__init__.py

+ 2 - 1
src/rules/__init__.py

@@ -3,12 +3,13 @@ from .poly import match_combine_polynomes, match_expand
 from .powers import match_add_exponents, match_subtract_exponents, \
         match_multiply_exponents, match_duplicate_exponent, \
         match_remove_negative_exponent, match_exponent_to_root
+from .numerics import match_divide_numerics
 
 
 RULES = {
         OP_ADD: [match_combine_polynomes],
         OP_MUL: [match_expand, match_add_exponents],
-        OP_DIV: [match_subtract_exponents],
+        OP_DIV: [match_subtract_exponents, match_divide_numerics],
         OP_POW: [match_multiply_exponents, match_duplicate_exponent, \
                  match_remove_negative_exponent, match_exponent_to_root],
         }