summaryrefslogtreecommitdiff
path: root/1670/CH5/EX5.6/5_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '1670/CH5/EX5.6/5_6.sce')
-rwxr-xr-x1670/CH5/EX5.6/5_6.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1670/CH5/EX5.6/5_6.sce b/1670/CH5/EX5.6/5_6.sce
new file mode 100755
index 000000000..87ba9c325
--- /dev/null
+++ b/1670/CH5/EX5.6/5_6.sce
@@ -0,0 +1,14 @@
+//Example 5.6
+//Finite Differences
+//Page no. 132
+clc;close;clear;
+printf(' x\t f(x)\t df(x)\t d2f(x) d3f(x) d4f(x)\n')
+printf('------------------------------------------------------------------------------------------')
+x=[0,3;1,12;2,81;3,2000;4,100]
+for i=3:6
+ for j=1:7-i
+ x(j,i)=x(j+1,i-1)-x(j,i-1)
+ end
+end
+disp(x)
+disp(x(1,6),"d4 y(0) = ") \ No newline at end of file