summaryrefslogtreecommitdiff
path: root/1652/CH15/EX15.7/15_7.sce
blob: d21aae072646d08eb49ffa1e22ed0dc9c65990ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
//Initialization of variables
aZn=0.1
aCu=0.01
e1=0.763 //volt
e2=0.337 //volt
//calculations
e0=e1+e2
Q=aZn/aCu
E=e0- 0.05915*log10(Q) /2
//results
printf("Emf of the cell = %.3f volts",E)