Browse Source

refactoring: added new lines

master
fd7794 11 months ago
parent
commit
482545f0c8
  1. 3
      src/main/py/read_math_function.py

3
src/main/py/read_math_function.py

@ -78,6 +78,7 @@ def extract_constant(function):
constant = constant.lstrip("+")
return [constant, f"{coefficient}x"]
def simplify_exponential_function(type, function):
if type != "e":
return False
@ -95,6 +96,7 @@ def simplify_exponential_function(type, function):
else:
return [f"{new_coefficient}x^{new_exponent}"]
def simplify_product_function(type, function):
if type != "p":
return False
@ -110,6 +112,7 @@ def simplify_product_function(type, function):
result_variables += term_variables
return [f"{result_variables}^{len(terms)}"]
def sum_of_simplified_exponential_functions(type, function):
if type !="se":
return False

Loading…
Cancel
Save