From c2834070a29e30771635d366ba8136bb582d3c68 Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 11:41:03 +0100 Subject: [PATCH] added check for x for simplify_exponential_function --- 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 be726a5..a1d3868 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -75,4 +75,6 @@ def extract_constant(function): def simplify_exponential_function(type, function): if type != "e": - return False \ No newline at end of file + return False + if 'x' not in function: + return "Der Ausdruck muss die Variable 'x' enthalten." \ No newline at end of file