summaryrefslogtreecommitdiff
path: root/689/CH3/EX3.2/2.sce
blob: 8ca4c518ead8924466c6b67c72e6d91d115e5ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clc; funcprot(0);
//Example 3.2  Equation of states

// Initialisation of variables
T = -10+459.4;
P = 16.38;
P0 = 29.92;
T0 = 518.4;
rho_0 = 0.002378 
g = 32.1740;

// Calculations
rho = P*rho_0*T0/(P0*T);
W =  rho*g;

//Results 
disp(W , "Spwcific gravity of dry air (lb/ft3):");