On Friday, April 8, 2011 3:59:23 PM UTC-7, ObsessiveMathsFreak wrote:
>
> This notation isn't very flexible though. For example, suppose I 
> wanted to plot h(-x,n) over the same range. 
>
> Can this be done without calling the symbolic engine? Is there a way 
> to bypass symbolic plots altogether? 
>


I'm not sure how to avoid using lambda with a piecewise-defined function 
like yours, although Kelvin Li gives a perfectly good answer to your 
question.  With more simply defined functions, you can work like this:

sage: H(x,y) = sin(x)*sin(y)
sage: plot(H.substitute(y=3), (x, 0, 10))

sage: H.substitute(y=3)
(x, y) |--> sin(3)*sin(x)

(I couldn't get h(x, y) = Piecewise(...) to work.)

-- 
John

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to