diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 5fabab3..add7387 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -78,4 +78,6 @@ def simplify_exponential_function(type, function): return False if 'x' not in function: return "Der Ausdruck muss die Variable 'x' enthalten." - coefficient, exponent = function.split('x^') \ No newline at end of file + coefficient, exponent = function.split('x^') + coefficient = int(coefficient) if coefficient else 1 + exponent = int(exponent) \ No newline at end of file