summaryrefslogtreecommitdiff
path: root/3856/CH3/EX3.1/Ex3_1.sce
blob: 715a21797cf2d9c33dd1b292633bcd10094537b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//Calculate the Most probable speed ,Mean speed and Root mean square speed for Oxygen molecule

//Example 3.1

clc;

clear;

R=8.314;   //Gas constant in J K^-1 mol^-1

T=300;  //Temperature in kelvin

mew=0.03200;  //Molar mass of Oxygen kg mol^-1

Cmp=sqrt((2*R*T)/(mew))//Most probable speed in m s^-1

printf("most probable speed = %.0f m s^-1",Cmp);

Cbar=sqrt((8*R*T)/(%pi*mew)); //Mean speed in m s^-1

printf("\nMean speed = %.0f m s^-1",Cbar);

Crms=sqrt((3*R*T)/(mew)); //Root mean square speed in m s^-1

printf("\nroot mean square speed = %.0f m s^-1",Crms);