I don't think I am doing anything stupid, but I am fairly new to Sage. 

I am using Sage 5.0 (Ubuntu 12.04 64 bit, running under Virtualbox) but the 
same behaviour occurs with Sage 4.7 running under Debian (not sure of 
version). I am trying to plot the graph of h(a,x) fo a range of values of a.

def h(a,x):
    if x<=a:
         return 2-sqrt(1-(1-x/a)^4)
     else:
         return sqrt(1-((x-a)/(2-a))^6)
plot(sqrt(x),(x,0,1))                            #Works fine
[h(.5,x) for x in [0..2,step=.1]]            #Returns plausible looking list
plot(h(.5,x),(x,0,2))


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



Reply via email to