Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3509 by [email protected]: Numbers should not remain in
BooleanFunctions
http://code.google.com/p/sympy/issues/detail?id=3509
Whatever is True or False should not persist in a boolean function:
And(1,x)
x
but
And(2,x)
And(2, x)
And(-1,x)
And(-1, x)
even though non-zero numbers are all True
if -1:print True
...
True
If the args could be prefiltered like
```
args = [S(a) for a in args]
args [a if not isinstance(a, Number) else bool(a) for a in args]
```
Then when that gets passed to LatticeOps the right thing will happen, e.g.
And(.1, x) -> x
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.