On Mon, May 11, 2015 at 3:27 PM, Aaron Meurer <[email protected]> wrote:
> On Mon, May 11, 2015 at 12:05 AM, Amit Saha <[email protected]> wrote:
>> Hi all,
>>
>> Is this the best way to check whether an expression is an inequality ?
>
> Yes, except note that Relational can also be Eq().

Thanks for pointing that out.


>
>>
>>>>> expr = x - 4 > 0
>>>>> isinstance(expr, Relational)
>> True
>>>>> expr = x - 4 >= 0
>>>>> isinstance(expr, Relational)
>> True
>>>>> expr = x - 4 <= 0
>>>>> isinstance(expr, Relational)
>> True
>>
>>
>> Also, can I submit a change to allow "Relational" to be imported from
>> sympy instead of having to do:
>> from sympy.core.relational import Relational ?
>
> Are there other examples of base classes being importable directly from sympy?

I am not sure, but i understand why it isn't already.



-- 
http://echorand.me

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CANODV3mbmVijP4P0fKoJdJ03a%3DdYepLO9QE%3DT09yNLp3Y4j2%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to