From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1646/CH1/EX1.17/Ch01Ex17.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1646/CH1/EX1.17/Ch01Ex17.sce (limited to '1646/CH1/EX1.17') diff --git a/1646/CH1/EX1.17/Ch01Ex17.sce b/1646/CH1/EX1.17/Ch01Ex17.sce new file mode 100755 index 000000000..eb8357765 --- /dev/null +++ b/1646/CH1/EX1.17/Ch01Ex17.sce @@ -0,0 +1,14 @@ +// Scilab Code Ex1.17: Page:35 (2011) +clc;clear; +c = 3e+008; // Speed of light in vacuum, unit +m0 = 9.1e-031; // Rest mass of the electron, kg +E_k = 0.1*1e+006*1.6e-019; // Kinetic energy of the electron, J +v = sqrt(2*E_k/m0); // Classical speed of the electron, m/s +printf("\nThe classical speed of the electron = %5.3e m/s", v); +// As E_k = (m-m0)*c^2 = (1/sqrt(1-v^2/c^2)-1)*m0*c^2, solving for v +v = c*sqrt(1-(m0*c^2/(E_k+m0*c^2))^2); // Relativistic speed of the electron, m/s +printf("\nThe relativistic speed of the electron = %5.3e m/s", v); + +// Result +// The classical speed of the electron = 1.875e+008 m/s +// The relativistic speed of the electron = 1.644e+008 m/s \ No newline at end of file -- cgit