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('+')