deff('[y]=f(x)','y=sin(x)+cos(x)'); //the function to draw fplot2d(0:0.1:%pi,f); // draw f(x) for x=0:0.1:%pi xtitle('fplot2d : f given by external ','x ','f(x) ');