#11258: Add documentation for plotting max and min functions
---------------------------+------------------------------------------------
   Reporter:  kcrisman     |          Owner:  jason, was
       Type:  enhancement  |         Status:  new       
   Priority:  major        |      Milestone:            
  Component:  graphics     |       Keywords:  beginner  
Work_issues:               |       Upstream:  N/A       
   Reviewer:               |         Author:            
     Merged:               |   Dependencies:            
---------------------------+------------------------------------------------
 To do this, you need `min_symbolic` and `max_symbolic`, as in #6949.  But
 I don't think this is in the documentation for plotting anywhere.

 {{{
 M = matrix([[1,-1],[-1,1]])
 f1(p) = (M[1,0] - M[0,0])*p+M[0,0]
 f2(p) = (M[1,1] - M[0,1])*p+M[0,1]
 P = plot([f1,f2],(p,0,1),linestyle='--')
 P += plot(min_symbolic(f1(p),f2(p)),(p,0,1),color='red')
 show(P,axes_labels=['$p$','Exp.'])
 }}}
 Notice that
 {{{
 P += plot(min_symbolic(f1,f2),(p,0,1),color='red')
 }}}
 and
 {{{
 P += plot(min(f1(p),f2(p)),(p,0,1),color='red')
 }}}
 don't work properly.  I could even consider the first one a bug...

 Putting in component 'graphics' because it's more likely these people will
 write documentation for this than symbolics or doc people!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11258>
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 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.

Reply via email to