7/24/13 2:20 PM

MATLAB Command Window

>> sum = Taylor_Convergence(pi/3,1)
sum =
-0.1914
>> sum = Taylor_Convergence(pi/3,2)
sum =
-0.1809
>> sum = Taylor_Convergence(pi/3,3)
sum =
-0.1812
>> sum = Taylor_Convergence(pi/3,4)
sum =
-0.1812
>> x=pi/3; sum=sin(x)-x
sum =
-0.1812
>> sum = Taylor_Convergence(pi/4,1)
sum =
-0.0807
>> sum = Taylor_Convergence(pi/4,2)
sum =
-0.0783
>> sum = Taylor_Convergence(pi/4,3)
sum =
-0.0783
>> x=pi/4; sum=sin(x)-x
sum =
-0.0783
>>

1 of 1