From bb0b5d383fafbb3806886d5295e8a735a2e78fe9 Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 11:41:46 +0100 Subject: [PATCH] added function.split for simplify_exponential_function --- src/main/py/read_math_function.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index a1d3868..5fabab3 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -77,4 +77,5 @@ def simplify_exponential_function(type, function): if type != "e": return False if 'x' not in function: - return "Der Ausdruck muss die Variable 'x' enthalten." \ No newline at end of file + return "Der Ausdruck muss die Variable 'x' enthalten." + coefficient, exponent = function.split('x^') \ No newline at end of file