Browse Source

added result declaration for new_exponent=0 for simplify_exponential_function

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

4
src/main/py/read_math_function.py

@ -82,4 +82,6 @@ def simplify_exponential_function(type, function):
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_coefficient = coefficient * exponent
new_exponent = exponent - 1
new_exponent = exponent - 1
if new_exponent == 0:
result = [str(new_coefficient)]
Loading…
Cancel
Save