summaryrefslogtreecommitdiff
path: root/1394/CH5/EX5.1.3/Ex5_1_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1394/CH5/EX5.1.3/Ex5_1_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
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.")