id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,merged,author,reviewer,upstream,work_issues,branch,commit,dependencies,stopgaps
6949,add symbolic max and min functions,burcin,burcin,"Matt Riesler wrote on sage-support:
{{{
Is it possible to have max behave as you would expect with a symbolic
expression, i.e. wait until you evaluate it or restrict the domain to
check what is the maximum of the two or more values.
}}}
Then kcrisman:
{{{
Might there be a way to do something that doesn't conflict with the
builtin max function in the same way as the (nearly reviewed) #3587
seems to avoid conflict with the builtin sum function? This would be
pretty useful, as currently:
sage: var('x,y')
(x, y)
sage: max(x,y)
x
sage: f(x)=1+x;g(x)=2-x
sage: max(f,g)
x |--> x + 1
which last result is... debatable.
}}}
Here is a the thread, which has a simple minded implementation for symbolic max:
http://groups.google.com/group/sage-support/browse_thread/thread/aead15de586984d8
We should make sure the symbolic implementations don't slow down the current builtin python `max()` and `min()` too much. If they do, these functions should still be available under a different name.",enhancement,closed,major,sage-4.4.2,symbolics,fixed,,jason,sage-4.4.2.alpha0,Burcin Erocal,Laurent Fousse,N/A,,,,,