summaryrefslogtreecommitdiff
path: root/172/CH2/EX2.5/ex5.sce
diff options
context:
space:
mode:
Diffstat (limited to '172/CH2/EX2.5/ex5.sce')
-rwxr-xr-x172/CH2/EX2.5/ex5.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/172/CH2/EX2.5/ex5.sce b/172/CH2/EX2.5/ex5.sce
new file mode 100755
index 000000000..4688e7a4c
--- /dev/null
+++ b/172/CH2/EX2.5/ex5.sce
@@ -0,0 +1,12 @@
+//example 5
+//pressure inside vessel
+clear
+clc
+dm=13590 //density of mercury in kg/m^3
+H=0.24 //height difference between two columns in metres
+g=9.80665 //acc. due to gravity in m/s^2
+dP=dm*H*g //pressure difference in Pa
+Patm=13590*0.750*9.80665 //Atmospheric Pressure in Pa
+Pvessel=dP+Patm //Absolute Pressure inside vessel in Pa
+Pvessel=Pvessel/101325//Absolute Pressure inside vessel in atm
+printf("\n hence, the absolute pressure inside vessel is Pvessel = %.3f atm. \n",Pvessel) \ No newline at end of file