blob: 99ef09c22eebe6d8efb2dbdcea0688c56e34dcc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Example 1// Ch 3
clc;
clear;
close;
// given data
R=8314; // gas constant in J/kg.mol.K
T=300; // temperature 27 deg C, 27+293=300K
M=32; // oxygen is diatomic
v = sqrt(3*R*(T/M));
printf("speed of oxygen molecule %f m/s",v)
// Note: Value of R is given wrong in book
// So answer in the book is wrong
|