From d8deef0c96b747528f13ee7ce6633e0e10615e18 Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 13:11:27 +0100 Subject: [PATCH] added calculation using simplify_exponential_function for difference_of_simplified_exponential_functions --- src/main/py/read_math_function.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index f0bf97f..ecbd18e 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -125,4 +125,6 @@ def sum_of_simplified_exponential_functions(type, function): def difference_of_simplified_exponential_functions(type, function): if type !="de": return False - minuend, subtrahend = function.split('-') \ No newline at end of file + minuend, subtrahend = function.split('-') + new_minuend = simplify_exponential_function('e', minuend) + new_subtrahend = simplify_exponential_function('e', subtrahend) \ No newline at end of file