summaryrefslogtreecommitdiff
path: root/50/CH4/EX4.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /50/CH4/EX4.3
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 '50/CH4/EX4.3')
-rwxr-xr-x50/CH4/EX4.3/ex_4_3.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/50/CH4/EX4.3/ex_4_3.sce b/50/CH4/EX4.3/ex_4_3.sce
new file mode 100755
index 000000000..fb99fe436
--- /dev/null
+++ b/50/CH4/EX4.3/ex_4_3.sce
@@ -0,0 +1,19 @@
+ // example 4.3
+ // find the linear interpolation polinomial
+ // using
+
+ disp('f(2)=4');
+ disp('f(2.5)=5.5');
+ // 1)lagrange interpolation,
+
+ P1=legrangeinterpol (2,2.5,4,5.5)
+ // 2)aitken's iterated interpolation,
+
+ P1=aitkeninterpol (2,2.5,4,5.5)
+
+ // 3) newton devided differance interpolation,
+
+ P1=NDDinterpol (2,2.5,4,5.5)
+
+ // hence approximate value of f(2.2)= 4.6;
+ \ No newline at end of file