|
@ -81,3 +81,5 @@ def simplify_exponential_function(type, function): |
|
|
coefficient, exponent = function.split('x^') |
|
|
coefficient, exponent = function.split('x^') |
|
|
coefficient = int(coefficient) if coefficient else 1 |
|
|
coefficient = int(coefficient) if coefficient else 1 |
|
|
exponent = int(exponent) |
|
|
exponent = int(exponent) |
|
|
|
|
|
new_coefficient = coefficient * exponent |
|
|
|
|
|
new_exponent = exponent - 1 |