From e640d698583e439f62c3e67caf0ce029643d09ae Mon Sep 17 00:00:00 2001 From: fdai7763 Date: Tue, 23 Jan 2024 23:15:09 +0100 Subject: [PATCH] refactoring: added new line --- src/main/py/read_math_function.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index 27e415d..8155947 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -53,6 +53,7 @@ def simplify_easy_math_function(type, function): if is_string(function) == False or is_allowed_string("c", function) == True: return simplify_constant("c", function) + def extract_constant(function): coefficient, constant = function.split('x', 1) if 'x' in function else (function, '') constant = constant.lstrip('+')