def min(a, b):
return Piecewise((a, a < b), (b, True))--
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 sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/7189c27c-6db0-4b73-b752-91c28ffa538d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
They already exist as Min and Max (the lowercase names are already taken by Python and we don't override builtin names). It's actually more complicated than what you suggest because they work on n arguments.