On 9 Jun., 00:04, Haz <christian.mu...@gmail.com> wrote:
> > Why it needs to be true or false? I don't expect the x in sin(x) to be
> > boolean. What am I missing?
>
>   Nothing -- I misunderstood. Ronan may be able to shed some light:
> -https://github.com/sympy/sympy/commit/635d89c3c53fd84cc884e0ab62dc3f0...

Apparently Ronan basically moved the implementation from Basic to a
different class. I think it makes sense to move it to BooleanSymbol.
We have predicates implemented for our new assumption system, if
anyone needs this.

But on the other hand, it can be very expressive to apply boolean to
general expressions. 0 would be false, everything else true. You could
write things like

a = x | y = x if x else y

Vinzent

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to