Browse Source

added result declaration for new_exponent=1 for simplify_exponential_function

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

2
src/main/py/read_math_function.py

@ -85,3 +85,5 @@ def simplify_exponential_function(type, function):
new_exponent = exponent - 1 new_exponent = exponent - 1
if new_exponent == 0: if new_exponent == 0:
result = [str(new_coefficient)] result = [str(new_coefficient)]
elif new_exponent == 1:
result = [f"{new_coefficient}x"]
Loading…
Cancel
Save