blob: efafff2c627d918095c12c9cf9c187aa11ca1f9c (
plain)
1
2
3
4
5
6
7
8
|
//Example 11.5
P=1.01*10^5;//Pressure (N/m^2) , which is equal to 1 atm
g=9.80;//Acceleration due to gravity (m/s^2)
rho=1*10^3;//Density of water (kg/m^3)
h=P/(rho*g);//Depth (m)
printf('Depth below the surface of water = %0.1f m',h)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|