summaryrefslogtreecommitdiff
path: root/1394/CH5/EX5.1.3/Ex5_1_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '1394/CH5/EX5.1.3/Ex5_1_3.sce')
-rwxr-xr-x1394/CH5/EX5.1.3/Ex5_1_3.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1394/CH5/EX5.1.3/Ex5_1_3.sce b/1394/CH5/EX5.1.3/Ex5_1_3.sce
new file mode 100755
index 000000000..ba409ca4a
--- /dev/null
+++ b/1394/CH5/EX5.1.3/Ex5_1_3.sce
@@ -0,0 +1,12 @@
+
+
+clc
+//initialization of variables
+p0 = 1//atm
+p = 33 //atm
+D0 = 0.043 // cm^2/sec
+//Calculations
+D = (p0*D0/p)*10^5 // x*10^-5 cm^2/sec
+//Results
+printf("The diffusion co efficient for the given conditions is %.3f x10^-5 cm^2/sec",D)
+disp("The answer is a bit different due to rounding off error in textbook. Also please verify that 10^-5 factor is utilized outside.")