summaryrefslogtreecommitdiff
path: root/3718/CH3/EX3.8/Ex3_8.sce
blob: 6f40f4418c887ae0f79ddc7b6cf1d349aa4a16a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Chapter 3: Thermodynamic and Chemical Equilibrium
//Problem: 8
clc;

//Declaration of Constant
R = 1.987               // cal per K per mol

//Declaration of Variables
m = 5
Vo = 4                  //in litres, Initial Volume
Vf = 40                 //in litres, Final Volume
T = 27                  //in deg C

// Solution
mprintf("dS = nRln(V2 / V1)\n")

dS = m * R * 2.303 * log10(Vf / Vo)

mprintf(" The change in entropy is: %.2f cal / degree",dS)