#7512: plot3d variable ranges should respect the named variable, if there is one
------------------------+---------------------------------------------------
   Reporter:  jason     |       Owner:  was     
       Type:  defect    |      Status:  new     
   Priority:  major     |   Milestone:  sage-4.3
  Component:  graphics  |    Keywords:          
Work_issues:            |      Author:          
   Reviewer:            |      Merged:          
------------------------+---------------------------------------------------
 This is a somewhat subtle issue if the function is a pure python function
 (you'd need to analyze the argument names), but maybe a convention is that
 if variable names are specified, they must match up to argument names in
 the function, and then they are slotted into the function using a
 dictionary, so that no matter where in the variable range list the range
 for x appears, it always is sent to the function as f(x=value).

 See http://sagenb.org/home/jason3/302/

 I think that each of these should return the same plot:

 {{{
 sage: var('x,y')
 sage: def f(x,y):
 ...      return x*sin(y)
 ...
 sage: plot3d(f, (x,0,3),(y,-6,6),viewer='tachyon')
 sage: plot3d(f, (y,-6,6),(x,0,3),viewer='tachyon')
 sage: g(x,y)= x*sin(y)
 sage: plot3d(g, (x,0,3),(y,-6,6),viewer='tachyon')
 sage: plot3d(g, (y,-6,6),(x,0,3),viewer='tachyon')
 }}}

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


Reply via email to