Browse Source

added calculation for simplify_exponential_function

remotes/origin/feature/feature-read-math-function-added-funktions
fd7794 11 months ago
parent
commit
b5aff8d4c2
  1. 2
      src/main/py/read_math_function.py

2
src/main/py/read_math_function.py

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