summaryrefslogtreecommitdiff
path: root/1394/CH6/EX6.1.1/Ex6_1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1394/CH6/EX6.1.1/Ex6_1_1.sce')
-rwxr-xr-x1394/CH6/EX6.1.1/Ex6_1_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1394/CH6/EX6.1.1/Ex6_1_1.sce b/1394/CH6/EX6.1.1/Ex6_1_1.sce
new file mode 100755
index 000000000..1b2f9144a
--- /dev/null
+++ b/1394/CH6/EX6.1.1/Ex6_1_1.sce
@@ -0,0 +1,12 @@
+
+clc
+//Initialization of variables
+DHplus = 9.31*10^-5 // cm^2/sec
+DClminus = 2.03*10^-5 // cm^2/sec
+//Calculations
+DHCl = (2/((1/DHplus)+(1/DClminus)))*10^5 // x*10^-5 cm^2/sec
+tHplus = DHplus/(DHplus+DClminus)
+percentage = tHplus*100 // percent
+//Results
+printf("The diffusion co efficient of the solution is %.1f x10^-5 cm^2/sec",DHCl)
+printf("\n The transeference for protons is %.f percent",percentage)