From d078b642c2db82393841b44b73cdebcca99921b5 Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 12:05:16 +0100 Subject: [PATCH] added simplify_product_function --- src/main/py/read_math_function.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 1357813..d756de7 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -88,4 +88,8 @@ def simplify_exponential_function(type, function): elif new_exponent == 1: return [f"{new_coefficient}x"] else: - return [f"{new_coefficient}x^{new_exponent}"] \ No newline at end of file + return [f"{new_coefficient}x^{new_exponent}"] + +def simplify_product_function(type, function): + if type != "p": + return False \ No newline at end of file