From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1673/CH1/EX1.14/1_14.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1673/CH1/EX1.14/1_14.sce (limited to '1673/CH1/EX1.14') 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 -- cgit