blob: 9b9a7f948031d2eda617c3b296bc31a3fb639716 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
//example 5.44
clear;
clc;
disp("The values for reaction that goes on within the cadmium cell");
//Given:
n=2;//no. of moles
E=1.01463;//standard cadmium cell potential[volts]
d=-5*10^-5;//i.e d=dE/dT[V/K]
F=96500;//[coulomb/mol]
T=298;//Temperature [K]
//To find the values of dG,dS and dH
dG=-n*E*F;//Change in Gibb's free energy[J]
dS=n*F*d;//Change in entropy [J/K]
dH=dG+T*dS;//change in enthalpy[J]
printf(" dG=%f J",dG);
printf("\n dS=%f J/K",dS);
printf("\n dH=%f J",dH);
|