blob: ffbe9fd543fd00829963cd7848d3cba4e4a7b146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
////
//Variable Declarations
h = 6.626e-34 //Planks constant, J.s
k = 1.38e-23 //Boltzman constant, J/K
c = 3.0e8 //speed of light, m/s
v = 1.0 //Volume, L
T = 298.0 //Temeprature of Ar, K
m = 6.63e-26 //Mass of Argon molecule, kg
//Calculations
GAMA = h/sqrt(2*%pi*m*k*T)
v = v*1e-3
qT3D = v/GAMA**3
//Results
printf("\n Thermal wave length is %3.2e m and\nTranslational partition function is %3.2e",GAMA,qT3D)
|