diff options
Diffstat (limited to '1652/CH15/EX15.7/15_7.sce')
-rwxr-xr-x | 1652/CH15/EX15.7/15_7.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1652/CH15/EX15.7/15_7.sce b/1652/CH15/EX15.7/15_7.sce new file mode 100755 index 000000000..d21aae072 --- /dev/null +++ b/1652/CH15/EX15.7/15_7.sce @@ -0,0 +1,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)
|