On 9 June 2011 16:17, Vinzent Steinberg <[email protected]>wrote:

> On 9 Jun., 00:04, Haz <[email protected]> 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
>
It does not look very pythonic to me. And it's not very readable. But that's
just an opinion.


>
> Vinzent
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to