You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a resolution to this issue, but is a useful workaround for some cases. If both sides of the expression can be evaluated (i.e. checking if 0==sqrt(2)), then running bool(expr.simplify()) will return False if the equality is indeed false.
This is not ideal for speed purposes, because as far as I can tell, it uses sympy's simplify features to do the simplification.
This does not help in the case that either side does not simplify, like in the original post.
This is fixed in PR #354. That Pull Request raises a TypeError if there are free variables, and will return True or False depending on the simplification of the relational if there are no free variables.
With the current version of symengine (symengine-0.6.0) the following returns
True
The outcome I expected was a TypeError as in sympy
The text was updated successfully, but these errors were encountered: