diff options
Diffstat (limited to '858/CH2/EX2.20/example_20.sce')
-rwxr-xr-x | 858/CH2/EX2.20/example_20.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/858/CH2/EX2.20/example_20.sce b/858/CH2/EX2.20/example_20.sce new file mode 100755 index 000000000..aaf4f41d0 --- /dev/null +++ b/858/CH2/EX2.20/example_20.sce @@ -0,0 +1,18 @@ +clc
+clear
+printf("example 2.20 page number 78\n\n")
+
+//to find sequence of deposition
+E1=-0.25;
+E2=0.80;
+E3=0.34;
+
+a=[E1;E2;E3];
+b=gsort(a);
+
+printf("sorted potential in volts =")
+disp (b)
+disp ("E2>E3>E1")
+disp ("silver>copper>nickel")
+
+
|