From 4bbc5b40237a09ed2a135b1f63efda6bdb14dc5a Mon Sep 17 00:00:00 2001 From: Ashutosh Saboo Date: Thu, 17 Mar 2016 23:58:54 +0530 Subject: [PATCH] Resolves & Fixes Issue #66 | ashutoshsaboo --- app/logic/logic.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)