Comment #3 on issue 2979 by [email protected]: > and >= are changed into < and <=
http://code.google.com/p/sympy/issues/detail?id=2979
Only having idly glanced through the Sympy codebase, option 2 of those would seem to me more "Sympyonic". My area of largest interest or concern is memory use, and at the point I have few million inequalities, I'd rather only define properties once (.e.g. GreaterThan.rel_op, rather than GreaterThan().rel_op).
If we need a specific property for the larger side, how about Gt.lts and GT.gts for "LessThanSide" and "GreaterThanSide"). These would clearly be opposite for GreaterThan and LessThan.
In regards to .lhs and .rhs, why are they wrong? I (perhaps naively) think of those as "left-hand side" and "right-hand side" which is exactly what they are, and is canonically how a lot of operator overrides are written (e.g. C++). For certain interactions, it doesn't matter /which/ relation the algorithm is working with, just that it has one side or the other.
-- 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.
