diff options
Diffstat (limited to '172/CH2/EX2.4/ex4.sce')
-rwxr-xr-x | 172/CH2/EX2.4/ex4.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/172/CH2/EX2.4/ex4.sce b/172/CH2/EX2.4/ex4.sce new file mode 100755 index 000000000..6e4c3266e --- /dev/null +++ b/172/CH2/EX2.4/ex4.sce @@ -0,0 +1,9 @@ +//example 4
+//Calculating atmospheric pressure
+clear
+clc
+dm=13534 //density of mercury in kg/m^3
+H=0.750 //height difference between two columns in metres
+g=9.80665 //acc. due to gravity in m/s^2
+Patm=dm*H*g/1000 //atmospheric pressure in kPa
+printf("\n hence, atmospheric pressure is Patm = %.2f kPa. \n",Patm)
\ No newline at end of file |