summaryrefslogtreecommitdiff
path: root/3850/CH24/EX24.2/Ex24_2.sce
blob: 09f923f8cfb534f546cd7d5a2382e930b13dab53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

//To calculate the rms speed of hydrogen molecules at the same temperature

//Example 24.2

clear;

clc;

v1=490;//rms speed of nitrogen at 273 Kelvin

m1=28;//molecular weight of nitrogen

m2=2;//molecular weight of hydrogen

v2=v1*sqrt(m1/m2);//rms speed of hydrogen at 273 Kelvin

printf("rms speed of hydrogen=%d m/s   (wrong answer given in the book)",v2);