#6949: add symbolic max and min functions
-------------------------+--------------------------------------------------
Reporter: burcin | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.1.2
Component: symbolics | Keywords:
Reviewer: | Author:
Merged: |
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6949>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---