summaryrefslogtreecommitdiff
path: root/1571/CH4/EX4.13/Chapter4_example13.sce
blob: 30ef52257ae09c8a1779f855c5f8ca7a1188a09a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear

//INPUT
t=300;//temperature of the oxygen molecule in K
n=6.02*10^23;//avagdrao's number
m=32/n;//mass of each molecule in oxygen
k=1.38*10^(-16);//boltzmann constant in erg/deg

//OUTPUT
v=(8*k*t/(3.14*m))^(0.5);//average velocity of oxygen molecule in cm/sec
v2=v*0.022384;//velocity in miles/hrs

mprintf('the avg velocity of  oxygen molecule is %3.1f miles/hour',v2)