summaryrefslogtreecommitdiff
path: root/2135/CH1/EX1.9/Exa_1_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2135/CH1/EX1.9/Exa_1_9.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 '2135/CH1/EX1.9/Exa_1_9.sce')
-rwxr-xr-x2135/CH1/EX1.9/Exa_1_9.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/2135/CH1/EX1.9/Exa_1_9.sce b/2135/CH1/EX1.9/Exa_1_9.sce
new file mode 100755
index 000000000..2ee44df26
--- /dev/null
+++ b/2135/CH1/EX1.9/Exa_1_9.sce
@@ -0,0 +1,27 @@
+//Exa 1.9
+clc;
+clear;
+close;
+format('v',7);
+
+//Given Data :
+Pmercury=10;//cm of Hg
+Patm=760;//mm of Hg
+Patm=1.01325;//bar
+Pabs=1.2;//bar
+sg_oil=0.8;
+sg_water=13.6;
+sg_mercury=13.6;
+rho_w=1000;//Kg.m^3
+g=9.81;//gravity constant
+deltaP=Pabs-Patm;//bar
+deltaP=deltaP*10^5;//N/m^2
+//deltaP=rho_o*g*h_o
+rho_o=sg_oil*rho_w;//kg/m^3
+h_o=deltaP/rho_o/g;//m
+disp(h_o,"Height of fluid in oil manometer in meter : ");
+h_w=deltaP/rho_w/g;//m
+disp(h_w,"Height of fluid in water manometer in meter : ");
+rho_m=sg_mercury*rho_w;//kg/m^3
+h_m=deltaP/rho_m/g;//m
+disp(h_m,"Height of fluid in mercury manometer in meter : ");