summaryrefslogtreecommitdiff
path: root/3821/CH7/EX7.12
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3821/CH7/EX7.12
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3821/CH7/EX7.12')
-rw-r--r--3821/CH7/EX7.12/Example7_12.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3821/CH7/EX7.12/Example7_12.sce b/3821/CH7/EX7.12/Example7_12.sce
new file mode 100644
index 000000000..f2c38953b
--- /dev/null
+++ b/3821/CH7/EX7.12/Example7_12.sce
@@ -0,0 +1,21 @@
+///Chapter No 7 Fluid Mechanics
+///Example 7.12 Page No 122
+/// Find Intensity of pressure of water
+///Input data
+clc;
+clear;
+Z1=1.5; //open tank contain water in m
+Z2=2.5; //oil of specific gravity for depth in m
+S=0.9; //oil of specific gravity
+rho1=1000; //density of water in Kg/m**3
+rho2=S*10^3; //density of oil in Kg/m**3
+g=9.81; //gravity
+
+
+
+///calculation
+P=rho1*g*Z1+rho2*g*Z2; //Intensity of pressure in kPa
+
+
+///output
+printf('intensity of pressure=%f N/m^2 \n',P);