|
@ -79,3 +79,5 @@ def simplify_exponential_function(type, function): |
|
|
if 'x' not in function: |
|
|
if 'x' not in function: |
|
|
return "Der Ausdruck muss die Variable 'x' enthalten." |
|
|
return "Der Ausdruck muss die Variable 'x' enthalten." |
|
|
coefficient, exponent = function.split('x^') |
|
|
coefficient, exponent = function.split('x^') |
|
|
|
|
|
coefficient = int(coefficient) if coefficient else 1 |
|
|
|
|
|
exponent = int(exponent) |