diff options
Diffstat (limited to '1673/CH1/EX1.14')
-rwxr-xr-x | 1673/CH1/EX1.14/1_14.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1673/CH1/EX1.14/1_14.sce b/1673/CH1/EX1.14/1_14.sce new file mode 100755 index 000000000..be1b014d5 --- /dev/null +++ b/1673/CH1/EX1.14/1_14.sce @@ -0,0 +1,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)
\ No newline at end of file |