summaryrefslogtreecommitdiff
path: root/1427/CH6/EX6.6/6_6.sce
blob: 875745e38846947b74fc48a1f0163f66bcc8b5f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
//ques-6.6
//Calculating concentration of nickel ions in the cell
clc
e1=-0.25;//emf for Ni(2+)/Ni (in V)
e2=0.34;//emf for Cu(2+)/Cu (in V)
C1=0.75;//concentration of Cu(2+) (in M)
E=0.601;//emf of cell (in V)
n=2;//number of electrons
//On solving, E = e2-e1+(0.0592/n)*log(C1/C2)
C2=C1/2.3529;//concentration of Ni(2+) (in M)
printf("The concentration of nickel ions is %.4f M.",C2);