clf()
t=linspace(0,2*pi,100)
a=sin(t)
b=t
c=t-(t**3)/6+(t**5)/120
plot(t,a)
plot(t,b,linestyle='--')
plot(t,c,marker='o')
xlim(0,5)
ylim(-1,5)
legend(['sin(t)','linear Approach','fifth order Approach'],loc='upper left')

Kreyszig-6.1_method3 (last edited 2010-12-17 12:50:53 by eshwara)