blob: 37af6fe555c5e99d5c04d15893d02a67b3ee4d0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clc
clear
//Input data
t=27;//The given temperature in degree centigrade
d=13.6;//The density of mercury in g/cm^3
g=980;//Gravitational constant in gms/s^2
m1=16;//number of oxygen molecules
D=0.000089;//The density of hydrogen at N.T.P in g/cc
T=273;//The temperature at N.T.P in K
//Calculations
P=76*g*d;//The pressure in dynes/cm^2
p=m1*D;//The density of oxygen at N.T.P in g/cc
C=((3*P)/(p))^(1/2);//The RMS velocity of oxygen molecule in cm/s
T1=t+T;//The given temperature in K
C1=C*(T1/T)^(1/2);//The RMS velocity of the molecules at 27 degree centigrade in cm/s
//Output
printf('The RMS velocity of the oxygen molecules at 27 degree centigrade is C1 = %3.4g cm/s ',C1)
|