blob: 44bb57ffe6c217e808406ffa95b747d6543137b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//example 5.34
clear;
clc;
//Given:
x=0.28;//mole fraction of solute
R=8.314;//Universal gas constant[J/K/mol]
T=298;//temperature[K]
//To find the reduction in chemical potential
du=R*T*log(1-x);//reduction in chemical potential[J/mol]
printf("The reduction in chemical potential is %f J/mol",-du);
|