summaryrefslogtreecommitdiff
path: root/2159/CH1/EX1.19/19.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2159/CH1/EX1.19/19.sce
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 '2159/CH1/EX1.19/19.sce')
-rwxr-xr-x2159/CH1/EX1.19/19.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2159/CH1/EX1.19/19.sce b/2159/CH1/EX1.19/19.sce
new file mode 100755
index 000000000..fa4d39245
--- /dev/null
+++ b/2159/CH1/EX1.19/19.sce
@@ -0,0 +1,15 @@
+//problem 1.19
+s=1.5
+s1=0.9
+w=9810
+h1=0.9
+h2=0.6
+p1=0.5*w*s*s1*h1*h1 //total pressure due to oil
+p2=w*h1*h2*s*s1 // total pressure due to oil above water
+p3=w*h2*h2*0.5*s //total pressure due to water
+p=p1+p2+p3
+h=((p1*0.6666*h1)+(p2*(h1+0.5*h2))+(p3*(0.6666*h2+h1)))/p
+disp(p,"resultant pressure on the wall in N/m2")
+disp(h,"position of centre of pressure from free surface")
+
+