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 /1670/CH5/EX5.50/5_50.sce | |
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 '1670/CH5/EX5.50/5_50.sce')
-rwxr-xr-x | 1670/CH5/EX5.50/5_50.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1670/CH5/EX5.50/5_50.sce b/1670/CH5/EX5.50/5_50.sce new file mode 100755 index 000000000..7b59a67de --- /dev/null +++ b/1670/CH5/EX5.50/5_50.sce @@ -0,0 +1,13 @@ +//Example 5.50
+//Spline Interpolation
+//Page no. 204
+clc;close;clear;
+
+xi=[1,2,3];
+yi=[-1,4,21];
+x=poly(0,'x')
+deff('y=S(x0,x1)','y=(x-xi(x1))*yi(x0)/(xi(x0)-xi(x1))+(x-xi(x0))*yi(x1)/(xi(x1)-xi(x0))');
+S1=S(1,2);
+S2=S(2,3);
+printf('\n The required Spline is : \n')
+disp(S2,'S2 = ',S1,'S1 = ');
\ No newline at end of file |