blob: 682102049da749286536775137ca236043f60dcf (
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 oxygen molecules
//Example 24.4
clear;
clc;
R=8.3;//universal gas constant in J/mol-K
T=300;//temperature in Kelvin
M0=0.032;//molecular weight in kg/mol
V=sqrt(3*R*T/M0);//formula for finding the rms speed
printf("the rms speed of oxygen molecule=%d m/s",V);
|