summaryrefslogtreecommitdiff
path: root/1571/CH4/EX4.6/Chapter4_Example6.sce
blob: bfe6c3100ec15e90de919985fba5aeae41bcac3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear

//INPUT
m=1;//mass of the oxygen in gm
r=8.31*10^7;//universal gas constant in erg/K/mole
t=320;//temperature of the oxygen in K
//for 1gm mole k.e is 1.5rt then for 1 gm oxygen (1/32)(k.e)

//CALCULATIONS
e=(m/32)*(3*r*t/2);//kinetic energy of the oxygen in erg

//OUTPUT
mprintf('the kinetic energy of the oxygen is %3.2ferg',e)