summaryrefslogtreecommitdiff
path: root/1394/CH6/EX6.1.2/Ex6_1_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1394/CH6/EX6.1.2/Ex6_1_2.sce')
-rwxr-xr-x1394/CH6/EX6.1.2/Ex6_1_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1394/CH6/EX6.1.2/Ex6_1_2.sce b/1394/CH6/EX6.1.2/Ex6_1_2.sce
new file mode 100755
index 000000000..2637c5768
--- /dev/null
+++ b/1394/CH6/EX6.1.2/Ex6_1_2.sce
@@ -0,0 +1,11 @@
+
+clc
+//Initialization of variables
+z1 = 3
+z2 = 1
+D2 = 2.03*10^-5 // cm^2/sec
+D1 = 0.62*10^-5 // cm^2/sec
+//Calculations
+D = ((z1+z2)/((z1/D2)+(z2/D1)))*10^5// x*10^-5 cm^2/sec
+//Results
+printf("The diffusion coefficient is %.2f x10^-5 cm^2/sec",D)