From 482545f0c8b4c913cdaf4c1ec023ae755154ef28 Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 13:03:11 +0100 Subject: [PATCH] refactoring: added new lines --- src/main/py/read_math_function.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 4eb1eb8..05307b3 100644 --- a/src/main/py/read_math_function.py +++ b/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