Browse Source

added simplify_product_function

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

6
src/main/py/read_math_function.py

@ -88,4 +88,8 @@ def simplify_exponential_function(type, function):
elif new_exponent == 1: elif new_exponent == 1:
return [f"{new_coefficient}x"] return [f"{new_coefficient}x"]
else: else:
return [f"{new_coefficient}x^{new_exponent}"]
return [f"{new_coefficient}x^{new_exponent}"]
def simplify_product_function(type, function):
if type != "p":
return False
Loading…
Cancel
Save