Comment #4 on issue 1648 by [email protected]: trigsimp fails
http://code.google.com/p/sympy/issues/detail?id=1648
IMHO every comparison of two objects that "can not be compared" in the
natural sense
of speaking, i.e. on one scale, should raise an error. Because it indicates
that the
user has done something wrong. E.g if the right hand side of my equation
has the
physical dimension 'meters' and the left hand side has the
dimension 'seconds' I know
that I have done something wrong.
On the other hand I just figured out that python has no problem to compare
apples and
pears.
E.g. the following evaluates to True (at least on my Python 2.5.2)
math.cos > 1
numpy.cos > 1
Even:
numpy.cos > numpy.inf
holds.
While at the same time
sympy.cos > sympy.oo
returns false.
I fact one write stuff like:
object > [] > float('inf')
and get True as result.
I guess there is some pythonic logic somewhere around which I missed so
far, because
I would expect an Exception in such cases.
The other question is: must sympy follow this pythonic logic or should it
define its own?
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---