diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index af796df..834f285 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -99,4 +99,6 @@ def simplify_product_function(type, function): result_coefficient = 1 result_variables = "" for term in terms: - simplified_term = simplify_easy_math_function("v", term.strip()) \ No newline at end of file + simplified_term = simplify_easy_math_function("v", term.strip()) + if not simplified_term or len(simplified_term) != 2: + return False \ No newline at end of file