blob: 9ac8a49b8d5bb3522f1996c7b65ad67a6bc2cf63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Chapter 3, Exmaple 1, page 103
//Movement of oxygen molecule
clc
clear
//using equation 3.3
R = 3814 // J/Kg.mol.K
T = 300 // K
M = 32 // mol^-1
V2 = 3*R*(T/M)
V = sqrt(V2)
printf("Velocity of Oxygen (O2)= %d m^2/s^2\n",V2)
//Since Oxygen is a diatomic gas
printf("Velocity of Oxygen (O)= %d m/s",V)
//Velocity of oxygen is about 300 m/s
//Answer given in the textbook is wrong
|