summaryrefslogtreecommitdiff
path: root/1943/CH9/EX9.8/Ex9_8.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1943/CH9/EX9.8/Ex9_8.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 '1943/CH9/EX9.8/Ex9_8.sce')
-rwxr-xr-x1943/CH9/EX9.8/Ex9_8.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1943/CH9/EX9.8/Ex9_8.sce b/1943/CH9/EX9.8/Ex9_8.sce
new file mode 100755
index 000000000..da86ffc3a
--- /dev/null
+++ b/1943/CH9/EX9.8/Ex9_8.sce
@@ -0,0 +1,14 @@
+
+clc
+clear
+//Input data
+Eni=4.8;//The energy of the newly born electron in MeV
+Enf=0.025;//The energy of the electron after slow down in eV
+A=12;//The mass number of the graphite (carbon)
+
+//Calculations
+L=1-[[(A-1)^2/(2*A)]*log((A+1)/(A-1))];//The logarithmic energy decrement
+n=(log(Eni*10^6/Enf))/L;//The number of collisions required to slowdown the neutron
+
+//Output
+printf('The logarithmic energy decrement representing the neutron energy loss per elastic collision = %3.3f \n The number of collisions necessary = %3.0f ',L,n)