Question: incomplete plot

Hi,

i have a minor issue with a plot, have a look.

restart:
 f:=x->piecewise(x<-1,0,x<0,-1-x,x<=1,1,0);
 plot(f(x),x=-2..2,discont=true);

Where are the plot lines on the x axis for x<-1 and x>1 ?

 

Thomas

Please Wait...