diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 94426e5..6bd5b02 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -102,4 +102,6 @@ def simplify_product_function(type, function): simplified_term = simplify_easy_math_function("v", term.strip()) if not simplified_term or len(simplified_term) != 2: return False - term_coefficient, term_variables = simplified_term \ No newline at end of file + term_coefficient, term_variables = simplified_term + result_coefficient *= term_coefficient + result_variables += term_variables \ No newline at end of file