summaryrefslogtreecommitdiff
path: root/1332/CH20/EX20.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1332/CH20/EX20.7
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1332/CH20/EX20.7')
-rwxr-xr-x1332/CH20/EX20.7/20_7.pdfbin0 -> 6367 bytes
-rwxr-xr-x1332/CH20/EX20.7/20_7.sce28
2 files changed, 28 insertions, 0 deletions
diff --git a/1332/CH20/EX20.7/20_7.pdf b/1332/CH20/EX20.7/20_7.pdf
new file mode 100755
index 000000000..5fea7a9d4
--- /dev/null
+++ b/1332/CH20/EX20.7/20_7.pdf
Binary files differ
diff --git a/1332/CH20/EX20.7/20_7.sce b/1332/CH20/EX20.7/20_7.sce
new file mode 100755
index 000000000..7a68d0158
--- /dev/null
+++ b/1332/CH20/EX20.7/20_7.sce
@@ -0,0 +1,28 @@
+//Example 20.7
+//Laplace Distribution
+//Page no. 694
+clc;clear;close;
+
+dr=3;r0=4;dth=%pi/4;
+deff('y=f(u1,u2,u3,u4)','y=(u1+u3+(dr*(u3-u1))/(2*r0)+(u2+u4)*(dr/(r0*dth))^2)/(2*(1+(dr/(r0*dth))^2))') //laplace distribution
+for i=1:8
+ U(i)=0;
+end
+printf('Itr\t U1\t U2\t U3\t U4\t U5\t U6\t U7\t U8\n-----------------------------------------------------------------------')
+for l=0:15
+ printf('\n %i',l)
+ for i=1:8
+ if i==1 then
+ u1(i)=f(100,U(8),40,U(i+1))
+ elseif i==8
+ u1(i)=f(100,U(i-1),40,U(1))
+ else
+ u1(i)=f(100,U(i-1),40,U(i+1))
+ end
+
+ end
+ for i=1:8
+ U(i)=u1(i)
+ printf('\t%.3f',U(i))
+ end
+end \ No newline at end of file