On 4/20/11 10:37 AM, tvn wrote:
hi, how do I check if a given expression f is an inequality or equation
? I could convert f to string and see if '==' or '<=' etc is in it but
that seems silly


sage: (x<=x^2).operator()
<built-in function le>
sage: (x==x^2).operator()
<built-in function eq>
sage: (x==x^2).operator()==operator.eq
True
sage: (x<=x^2).operator()==operator.le
True

Thanks,

Jason

--
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/sage-support
URL: http://www.sagemath.org

Reply via email to