summaryrefslogtreecommitdiff
path: root/944/CH5/EX5.12/example5_12_TACC.sce
blob: e5c02c41100fa2bce670866f6d85cd8681e4c8aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//example 5.12

clear;
clc;

//Given:
n=1;//no. of moles
T=273;//temperature [K]
Hf=6000;//enthalpy of fusion at 273K [J/mol]
k=1.38*(10^-23);//boltzmann constant[J/K]

//To find the relative number of distinguishable quantum states in 1 mole of water and ice at 273K 

p=Hf/(k*T)/2.303;
w=10^(p);//w is the relative no. of distinguishable quantum states
printf("The relative no. of distinguishable quantum states in 1 mole of water and ice at 273K is %f",w);