blob: 962f963e7a6a1bd2df32cf5cddcfc27712b98fc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
//initialisation of variables
T= 25 //C
T1= 100 //C
R= 1.9872 //cal /mole K
p= 1 //atm
p1= 10 //atm
//CALCULATIONS
S= 3.5*R*log((T1+273)/(T+273))
S1= S+R*log(p/p1)
//RESULTS
printf (' increase in entropy= %.2f cal deg^-1',S)
printf (' \n increase in entropy= %.2f cal deg^-1',S1)
|