summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.13/18_13.sce
blob: f4aeb396c4b5b1c2bf130e2c4b2892c4e42ce6d4 (plain)
1
2
3
4
5
6
7
8
//ques-18.13
//Calculating change in entropy for an isothermal expansion
clc
n=5;//moles of gas
//r=V2/V1
r=6;
S=2.303*8.314*n*log10(r);//change in entropy
printf("The change in entropy is %.1f J/K.",S);