diff --git a/app/logic/logic.py b/app/logic/logic.py index 2f3bdf01..cc39af0d 100644 --- a/app/logic/logic.py +++ b/app/logic/logic.py @@ -152,6 +152,12 @@ def plot(f=None, **kwargs): transformations.append(synonyms) transformations.extend(standard_transformations) transformations.extend((convert_xor, custom_implicit_transformation)) + + if "==" in s: + a=s.split("==") + if "0" not in a[1]: + s = 'simplify(' + a[0] + '-' + a[1] + ') == 0' + parsed = stringify_expr(s, {}, namespace, transformations) try: evaluated = eval_expr(parsed, {}, namespace)