diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 89cd502..21ff654 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -84,4 +84,6 @@ def simplify_exponential_function(type, function): new_coefficient = coefficient * exponent new_exponent = exponent - 1 if new_exponent == 0: - result = [str(new_coefficient)] \ No newline at end of file + result = [str(new_coefficient)] + elif new_exponent == 1: + result = [f"{new_coefficient}x"] \ No newline at end of file