From a3c54659b643585b6d1f22f75f9db065534ba671 Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 12:21:18 +0100 Subject: [PATCH] added calculation for simplify_product_function --- src/main/py/read_math_function.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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