summaryrefslogtreecommitdiff
path: root/1673/CH1/EX1.14/1_14.sce
blob: be1b014d51ad5afce5f983465fed522d89cc35b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//maclaurins expansion
//example 1.14
//page 18
clc;clear;close;
x=1;
n=8;//correct to 8 decimal places
for i=1:50
    if x/factorial(i)<(10^-8/2) then
        c=i;
        break;
       
    end
end
printf('no of terms needed to correct to 8 decimal places is :%d',c)