diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 49c0bad..89cd502 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -82,4 +82,6 @@ def simplify_exponential_function(type, function): coefficient = int(coefficient) if coefficient else 1 exponent = int(exponent) new_coefficient = coefficient * exponent - new_exponent = exponent - 1 \ No newline at end of file + new_exponent = exponent - 1 + if new_exponent == 0: + result = [str(new_coefficient)] \ No newline at end of file