hello,
why is the below code plotting a flat function rather than a box one?

renato


def box(x,c):
    if abs(x) < c:
        return 1
    else:
        return 0
var('x')
plot(box(x,1),(x,-3,3))

-- 
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