From 7cae789b991254dd9e10fbc1bfc4a96262b41713 Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 11:51:02 +0100 Subject: [PATCH] added return result for simplify_exponential_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 9763275..1cf429e 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -88,4 +88,5 @@ def simplify_exponential_function(type, function): elif new_exponent == 1: result = [f"{new_coefficient}x"] else: - result = [f"{new_coefficient}x^{new_exponent}"] \ No newline at end of file + result = [f"{new_coefficient}x^{new_exponent}"] + return result \ No newline at end of file