summaryrefslogtreecommitdiff
path: root/1019/CH5/EX5.7/Example_5_7.sce
blob: 4a82bb5ca2e934dd9be229e4168ea56f6b19cf9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Example 5.7
clear;
clc;

//Given
P1=2.15;//vapour pressure of water in mm of Hg
P2=1.95;//vapour pressure of ice in mm of Hg
R=8.314;//gas constant in J K^-1 mol^-1
T=263//temperature in K

//To determine the free energy change delG
delG=R*T*log(P2/P1);//gibbs free energy in J mol^-1
mprintf('(i) Free energy change = 0 J mol^-1');
mprintf('\n (ii) Free energy change = %f J mol^-1',delG);
mprintf('\n (iii) Total Free energy change = %f J mol^-1',delG);
//end