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