We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> import sympy >>> sympy.sympify("a+b").count_ops() 1 >>> sympy.sympify("a+b+c").count_ops() 2 >>> sympy.sympify("Or(a,b)").count_ops() 0 >>> from sympy.logic.boolalg import Or #not sure when and why it is required >>> sympy.sympify("Or(a,b)").count_ops() 0 >>> sympy.sympify("Or(a,Or(b,c))").count_ops() 0 >>> sympy.sympify("a|b").count_ops() 0
Original issue for #7010: http://code.google.com/p/sympy/issues/detail?id=3911 Original author: https://code.google.com/u/117410852413913309498/
The text was updated successfully, but these errors were encountered:
**Status:** Valid
Original comment: http://code.google.com/p/sympy/issues/detail?id=3911#c1 Original author: https://code.google.com/u/asmeurer@gmail.com/
Sorry, something went wrong.
Merge pull request #7303 from sahilshekhawat/master
f20add3
Make count_ops() work with logic operations by creating a binary tree. Fixes #7010
Successfully merging a pull request may close this issue.
Original issue for #7010: http://code.google.com/p/sympy/issues/detail?id=3911
Original author: https://code.google.com/u/117410852413913309498/
The text was updated successfully, but these errors were encountered: