Browse Source

added result declaration for new_exponent!=1&&0 for simplify_exponential_function

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

2
src/main/py/read_math_function.py

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