summaryrefslogtreecommitdiff
path: root/2795/CH3/EX3.16/Ex3_16.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2795/CH3/EX3.16/Ex3_16.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 '2795/CH3/EX3.16/Ex3_16.sce')
-rwxr-xr-x2795/CH3/EX3.16/Ex3_16.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2795/CH3/EX3.16/Ex3_16.sce b/2795/CH3/EX3.16/Ex3_16.sce
new file mode 100755
index 000000000..f9c89c278
--- /dev/null
+++ b/2795/CH3/EX3.16/Ex3_16.sce
@@ -0,0 +1,25 @@
+// Scilab Code Ex3.16: Page-116 (2013)
+clc; clear
+c = 2.998e+008; // Speed of light in vacuum, m/s
+h = 6.626e-034; // Planck's constant, Js
+m_e = 9.11e-031; // Rest mass of an electron, kg
+lambda = 0.050; // Wavelength of the X-ray, nm
+theta = 180; // The angle at which the recoil electron Ke becomes the largest, degree
+E_x_ray = 1.240e+003/lambda; // Energy of the X-ray, eV
+lambda_prime = lambda + (1-cosd(theta))*h/(m_e*c*1e-009); // The largest wavelength of the scattered photon, nm
+E_prime_x_ray = 1.240e+003/lambda_prime; // Energy of the scattered photon, eV
+K = (E_x_ray - E_prime_x_ray)/1e+003; // Kinetic energy of the most energetic recoil electron, keV
+if (E_prime_x_ray < E_x_ray) then
+ printf("\nThe X-ray is Compton-scattered by the electron.");
+else
+ printf("\nThe X-ray is not Compton-scattered by the electron.");
+end
+printf("\nThe largest wavelength of the scattered photon = %5.3f nm", lambda_prime);
+printf("\nThe kinetic energy of the most energetic recoil electron = %3.1f keV", K);
+printf("\nThe angle at which the recoil electron energy is the largest = %d degrees", theta);
+
+// Result
+// The X-ray is Compton-scattered by the electron.
+// The largest wavelength of the scattered photon = 0.055 nm
+// The kinetic energy of the most energetic recoil electron = 2.2 keV
+// The angle at which the recoil electron energy is the largest = 180 degrees \ No newline at end of file