blob: 321808ce21a220bdae3e93d880974e1fe61ca1ce (
plain)
1
2
3
4
5
6
7
8
9
|
clear
clc
//Example 2.1 DENSITY OF AIR
T=4+273; //[K]
p=101*10^3; //[N/m^2]
R=287; //[J/kg.K]
//Density
rho=p/(R*T) //[kg/m^3]
printf("\n The density of the air = %.2f kg/m^3.\n",rho)
|