summaryrefslogtreecommitdiff
path: root/3648/CH12/EX12.5/Ex12_5.sce
blob: e9b78d5cfee9bdc013706f74e26c8d31aa60d475 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 12_5
clc();
clear;
//To findout by how much the entropy of the system changes
m=20       //Units in gm
alpha=80    //Units in cal/gm
t=4.184               //Units in J/Cal
Q=m*alpha*t      //Units in J
T=273      //Units in K
S=Q/T        //Units in J/K
printf("The entropy is Delta S=%.1f J/K",S)