summaryrefslogtreecommitdiff
path: root/1670/CH5/EX5.18
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1670/CH5/EX5.18
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1670/CH5/EX5.18')
-rwxr-xr-x1670/CH5/EX5.18/5_18.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1670/CH5/EX5.18/5_18.sce b/1670/CH5/EX5.18/5_18.sce
new file mode 100755
index 000000000..63ecf0757
--- /dev/null
+++ b/1670/CH5/EX5.18/5_18.sce
@@ -0,0 +1,21 @@
+//Example 5.18
+//Error Propagation
+//Page no. 141
+clc;close;clear;
+printf(' x\t y\t\tdy\td2y\t d3y\t d4y\t d5y\n')
+printf('------------------------------------------------------------------------------------------')
+x=[0,2;1,5;2,8;3,17;4,38;5,75;6,140;7,233;8,362;9,533;10,752]
+for i=3:6
+ for j=1:13-i
+ x(j,i)=x(j+1,i-1)-x(j,i-1)
+ end
+end
+disp(x)
+for i=1:11
+ if abs(x(i,6))<10^-5 then
+ continue
+ else
+ break
+ end
+end
+printf("\n\Therefore the error is in the value corresponding to %g i.e. %g",x(i+4,1),x(i+4,2)) \ No newline at end of file