-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relational operators always evaluate to True when cast to bool #312
Comments
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 This does not help in the case that either side does not simplify, like in the original post. |
…ean evaluation is, instead of always True. Resolves symengine#312
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: