From e3a6e523fe67f33d1b01a59d91988b0d642cd36b Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 12:21:46 +0100 Subject: [PATCH] added return statement for simplify_product_function --- src/main/py/read_math_function.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 6bd5b02..ca7dac4 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -104,4 +104,5 @@ def simplify_product_function(type, function): return False term_coefficient, term_variables = simplified_term result_coefficient *= term_coefficient - result_variables += term_variables \ No newline at end of file + result_variables += term_variables + return [f"{result_variables}^{len(terms)}"] \ No newline at end of file