Beginner needs help with 2d plotting



Julien Martin escribi?:
> Hello,
> 
> I have a function defined as follows:
> 
> F(x)=(e^x)/3 for x<=0
> F(x)=1 for x>0
> 
> I need to plot this function. How do I do that bearing in mind that the 
> function definition changes according to the values of x???
> 



load(draw)$

draw2d(explicit (%e^x/3, x, -3, 0),
        explicit (1,      x,  0, 3),
        yrange     = [-2,2],
        grid       = true,
        point_type = filled_circle,
        point_size = 2,
        points ([[0,1/3]]) )$



-- 
Mario Rodriguez Riotorto
http://www.telefonica.net/web2/biomates