#14440: bug in max?
----------------------------+-----------------------------------------------
       Reporter:  zimmerma  |         Owner:  burcin                        
           Type:  defect    |        Status:  needs_review                  
       Priority:  major     |     Milestone:  sage-duplicate/invalid/wontfix
      Component:  calculus  |    Resolution:                                
       Keywords:            |   Work issues:                                
Report Upstream:  N/A       |     Reviewers:  Karl-Dieter Crisman           
        Authors:            |     Merged in:                                
   Dependencies:            |      Stopgaps:                                
----------------------------+-----------------------------------------------
Changes (by kcrisman):

  * status:  new => needs_review
  * reviewer:  => Karl-Dieter Crisman
  * milestone:  sage-5.10 => sage-duplicate/invalid/wontfix


Comment:

 Feature.
 {{{
 sage: max(x,x^2)
 x
 sage: max(x^2,x)
 x^2
 sage: max_symbolic(x,x^2)
 max(x, x^2)
 sage: max_symbolic(x^2,x)
 max(x^2, x)
 sage: max_symbolic(x^2,x).subs(x=.5)
 0.500000000000000
 sage: max_symbolic(x,x^2).subs(x=.5)
 0.500000000000000
 sage: max_symbolic(x^2,x).subs(x=2)
 4
 sage: max_symbolic(x,x^2).subs(x=2)
 4
 }}}
 This comes up pretty frequently, but since `max` is a Python built-in, we
 can't really override it easily in the "right" way for this to work
 differently, and it would probably be bad to add a little message about
 "if you really want..." since often max is just the right thing.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14440#comment:1>
Sage <http://www.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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to