blob: 38c51366dcafd1cc649354aec38c0f8bc41b2dbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc;
disp("Example 1.1")
R=0.12
// manometer reading in m
densitym= 13600 // of mercury in kg/m^3
densityw= 1000 // of water in kg/m^3
g=9.81 // acceleration due to gravity in m/s^2
p=R*g*(densitym-densityw)
disp(" Pressure difference is ")
disp(p)
disp(" N/m^2 ")
|