This is what I am doing:

>>> from sympy import *

>>> x = Symbol("x",ispositive=True)
>>> y = Symbol("y",isnegative=True)
>>> min(x,y)
x
>>> max(x,y)
y
>>> min(y,0)
0
>>> max(y,0)
y

I'm guessing that SymPy views the symbols x and y as formal variables,
e.g., formal variables for creating a ring of multivariate polynomial,
for which a lexicographical ordering would be appropriate.  However, I
intend the symbols x and y to be indeterminate real numbers, e.g., as
stand-ins for particular real values which do not happen to be known
at the present time, and for which only mathematically correct
simplifications of min and max are appropriate.

How can I make SymPy do what I want?

Thanks,
   Mark

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
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