summaryrefslogtreecommitdiff
path: root/24/CH20/EX20.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH20/EX20.4
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 '24/CH20/EX20.4')
-rwxr-xr-x24/CH20/EX20.4/Example20_4.sce20
-rwxr-xr-x24/CH20/EX20.4/Example20_4_result.txt6
2 files changed, 26 insertions, 0 deletions
diff --git a/24/CH20/EX20.4/Example20_4.sce b/24/CH20/EX20.4/Example20_4.sce
new file mode 100755
index 000000000..ec9dbcf6d
--- /dev/null
+++ b/24/CH20/EX20.4/Example20_4.sce
@@ -0,0 +1,20 @@
+//Given that
+R = 8.31 //in J/mol.K
+Na = 6.023*10^23 //in /mol
+K = R/Na
+
+//Sample Problem 20-4a
+printf("**Sample Problem 20-4a**\n")
+T = 300 //in K
+P = 1*1.0125*10^5 //in pa
+d = 290*10^-12 //in meter
+lambda = K*T/(sqrt(2)*%pi*d^2*P)
+printf("The mean free path is equal to %em\n", lambda)
+
+//Sample Problem 20-4b
+printf("\n**Sample Problem 20-4b**\n")
+v = 450 //in m/s
+t = lambda/v
+printf("The time between two collisions is %esec\n", t)
+f = 1/t
+printf("The frequency of collision is %eHz", f) \ No newline at end of file
diff --git a/24/CH20/EX20.4/Example20_4_result.txt b/24/CH20/EX20.4/Example20_4_result.txt
new file mode 100755
index 000000000..67ff63b6e
--- /dev/null
+++ b/24/CH20/EX20.4/Example20_4_result.txt
@@ -0,0 +1,6 @@
+**Sample Problem 20-4a**
+The mean free path is equal to 1.094091e-007m
+
+**Sample Problem 20-4b**
+The time between two collisions is 2.431314e-010sec
+The frequency of collision is 4.113003e+009Hz \ No newline at end of file