summaryrefslogtreecommitdiff
path: root/3878/CH24/EX24.1/Ex24_1.sce
blob: 02e6a5c0003901732a50ccc84a6944f02a2cc139 (plain)
1
2
3
4
5
6
7
8
9
10
clear
// Variable declaration
Z=4500// Altitude in m
p=575// mbar barometric pressure
t=-10// Temperature in °C

// Calculation
rho=1.2*(p/1013.25)*((273.15+20)/(273.15+t))// The density of dry air in kg/m**3
printf("\n The density of dry air,rho=%0.2f kg/m**3",rho)