summaryrefslogtreecommitdiff
path: root/3689/CH16/EX16.2/16_2.sce
blob: dc07fb11c4db00f0af7f672743b004bb5a23556d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
////
//Variable Declaration
R = 8.314         //Ideal Gas Constant, J/(mol.K)
T = 298           //Temperatureof Gas, K
M = 0.040         //Molecular wt of Ar, kg/mol


//Calculations
vmp = sqrt(2*R*T/M)
vave = sqrt(8*R*T/(M*%pi))
vrms = sqrt(3*R*T/M)

//Results
printf("\n Maximum, average, root mean square speed of Ar\nat 298 K are %4.0f, %4.0f, %4.0f m/s",vmp,vave,vrms)