diff options
Diffstat (limited to '2795/CH5/EX5.2/Ex5_02.sce')
-rwxr-xr-x | 2795/CH5/EX5.2/Ex5_02.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2795/CH5/EX5.2/Ex5_02.sce b/2795/CH5/EX5.2/Ex5_02.sce new file mode 100755 index 000000000..b12083183 --- /dev/null +++ b/2795/CH5/EX5.2/Ex5_02.sce @@ -0,0 +1,20 @@ +// Scilab Code Ex5.2 : Page-168 (2013)
+clc; clear;
+h = 6.63e-034; // Planck's constant, Js
+c = 3e+008; // Speed of light, m/s
+// For a moving ball
+m = 0.057; // Mass of the ball, kg
+v = 25; // Velocity of ball, m/s
+p = m*v; // Momentum of the ball, kgm/s
+lambda = h/p; // Lambda is the wavelength of ball, nm
+printf("\nThe wavelength of ball = %3.1e m", lambda);
+// For a moving electron
+m = 0.511e+006; // Rest mass of an electron, eV
+K = 50; // Kinetic energy of the electron, eV
+p = sqrt(2*m*K); // Momentum of the electron, kgm/s
+lambda = h*c/(1.602e-019*p*1e-009); // Wavelength of the electron, nm
+printf("\nThe wavelength of the electron = %4.2f nm", lambda);
+
+// Result
+// The wavelength of ball = 4.7e-034 m
+// The wavelength of the electron = 0.17 nm
|