Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can't use symengine booleans directly for condition testing #192

Closed
xwan242 opened this issue Sep 27, 2017 · 0 comments
Closed

Can't use symengine booleans directly for condition testing #192

xwan242 opened this issue Sep 27, 2017 · 0 comments

Comments

@xwan242
Copy link

xwan242 commented Sep 27, 2017

E.g.

>>> symengine.var('x')
x
>>> yy = 0
>>> if (x**2).args[1] < 0:
...  yy = 33
...
>>> yy
33
>>> type((x**2).args[1] < 0)
<type 'symengine.lib.symengine_wrapper.BooleanFalse'>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant