{{{clf() t=linspace(0,2*pi,100) y1=sin(t) y2=t y3=t-(t**3)/6+(t**5)/120 plot(t,y1) plot(t,y2,'--') plot(t,y3,'o') axis([0,5,-1,5]) xlabel('t') ylabel('approximations of sin(t)') title('fun with sin(t)') }}}

Kreyszig-6.1-3 (last edited 2010-12-18 05:39:00 by telugupraveenkumar)