blob: b9536cd5d983bc682b16445d6175b9f862b63964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
clear
//INPUT
t1=273;//temperature of the hydrogen molecule in K
t2=373;//temperature of the hydrogen molecule in K
d=0.0000896;//density of the hydrogen molecule in gm/cc
p=76*13.6*981;//pressure of the hydrogen molecule in gm/cm/sec^2
//CALCULATIONS
v0=(3*p/d)^(0.5);//rms velocity at 0deg.C
v100=v0*(t2/t1)^(0.5);//rms velocity at 100deg.C
//OUTPUT
mprintf('the rms velocity at 0deg.C is %3f cm/sec \n the rms velocity at 100deg.C is %3f cm/sec',v0,v100)
|