blob: ce44d837d152febe3ead9f6a681ae1db14a23676 (
plain)
1
2
3
4
5
6
7
8
9
|
//ques-6.4
//Calculating emf of a daniel cell
clc
Es=1.1;//standard potential of cell (in V)
C1=0.001;//concentration of Zn(2+) (in M)
C2=0.1;//concentration of Cu(2+) (in M)
n=2;//number of electrons
E=Es+(0.0592/n)*log10(C2/C1);
printf("The emf of the given daniel cell is %.4f V.",E);
|