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/CH7/EX7.2 | |
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/CH7/EX7.2')
-rwxr-xr-x | 1670/CH7/EX7.2/7_2.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1670/CH7/EX7.2/7_2.sce b/1670/CH7/EX7.2/7_2.sce new file mode 100755 index 000000000..041900836 --- /dev/null +++ b/1670/CH7/EX7.2/7_2.sce @@ -0,0 +1,22 @@ +//Example 7.2
+//Differentiation
+//Page no. 232
+clc;close;clear;
+
+t=[1,1.1,1.2,1.3,1.4]
+I=[8.2277,7.2428,5.9908,4.5260,2.9122]
+L=0.05;R=2;h=0.1;
+deff('y=f(x)','y=L*i1(x)+R*I(x)')
+deff('y=f1(x,h1)','y=(I(x+h1)-I(x-h1))/(2*h)')
+deff('y=f2(x,h1)','y=(-I(x+2*h1)+8*I(x+h1)-8*I(x-h1)+I(x-2*h1))/(12*h)')
+x=3;h1=1;
+i1(x)=f1(x,h1)
+E=f(x)
+printf('Using Centred Tendency of Order O(h2)\n')
+printf('I`(1.2) = %g\n',i1(x))
+printf('\n E(1.2) = %g',E)
+i1(x)=f2(x,h1)
+E=f(x)
+printf('\n\n\nUsing Centred Tendency of Order O(h4)\n')
+printf('I`(1.2) = %g\n',i1(x))
+printf('\n E(1.2) = %g',E)
\ No newline at end of file |