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.11/5_11.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.11/5_11.sce')
-rwxr-xr-x | 1670/CH5/EX5.11/5_11.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1670/CH5/EX5.11/5_11.sce b/1670/CH5/EX5.11/5_11.sce new file mode 100755 index 000000000..8cc3cd2d0 --- /dev/null +++ b/1670/CH5/EX5.11/5_11.sce @@ -0,0 +1,16 @@ +//Example 5.11
+//Finite Differences
+//Page no. 136
+clc;close;clear;
+printf(' x\t f(x)\tdf(x) d2f(x) d3f(x) d4f(x)\n')
+printf('------------------------------------------------------------------------------------------')
+x=[0,-5;1,1;2,9;3,25;4,55;5,105]
+for i=3:6
+ for j=1:8-i
+ x(j,i)=x(j+1,i-1)-x(j,i-1)
+ end
+end
+disp(x)
+x1=poly(0,"x")
+fx=x(1,2)+x1*x(1,3)+(x1^2-x1)*x(1,4)/2+(x1^3-3*x1^2+2*x1)*x(1,5)/6
+disp("is the required polynomial",fx)
\ No newline at end of file |