diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /50/CH4/EX4.15 | |
download | Scilab-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.15')
-rwxr-xr-x | 50/CH4/EX4.15/ex_4_15.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/50/CH4/EX4.15/ex_4_15.sce b/50/CH4/EX4.15/ex_4_15.sce new file mode 100755 index 000000000..be4304926 --- /dev/null +++ b/50/CH4/EX4.15/ex_4_15.sce @@ -0,0 +1,26 @@ +// example 4.15:
+// obtain the interpolate using backward differences polinomial
+
+
+xL=[.1 .2 .3 .4 .5 ]'
+
+f=[1.4 1.56 1.76 2 2.28]'
+n=2;
+
+
+// hence;
+disp('P=1.4+(x-.1)*(.16/.1)+(x-.5)*(x-.4)*(.04/.02)')
+disp('P=2x^2+x+1.28');
+
+// 1) obtain the interpolate at x=0.25;
+x=0.25;
+[P]=NBDP(x,n,xL,f);
+P
+disp('f(.25)=1.655');
+
+
+// 2) obtain the interpolate at x=0.35;
+x=0.35;
+[P]=NBDP(x,n,xL,f);
+P
+disp('f(.35)=1.875');
\ No newline at end of file |