diff options
Diffstat (limited to '1646/CH1/EX1.12/Ch01Ex12.sce')
-rwxr-xr-x | 1646/CH1/EX1.12/Ch01Ex12.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1646/CH1/EX1.12/Ch01Ex12.sce b/1646/CH1/EX1.12/Ch01Ex12.sce new file mode 100755 index 000000000..c3c86a035 --- /dev/null +++ b/1646/CH1/EX1.12/Ch01Ex12.sce @@ -0,0 +1,15 @@ +// Scilab Code Ex1.12: Page:32 (2011)
+clc;clear;
+c = 3e+008; // Speed of light in vacuum, m/s
+m0 = 9.1e-031; // Rest mass of electron, kg
+m = 11*m0; // Mass of relativistically moving electron, kg
+E_k = (m-m0)*c^2/(1.6e-019*1e+06); // Kinetic energy of moving electron, MeV
+// As m = m0/sqrt(1-v^2/c^2), solving for v
+v = c*sqrt(1-(m0/m)^2); // The velocity of the moving electron, m/s
+p = m*v; // Momentum of moving electron, kg-m/s
+printf("\nThe kinetic energy of moving electron = %4.2f MeV", E_k);
+printf("\nThe momentum of moving electron = %4.2e kg-m/s", p);
+
+// Result
+// The kinetic energy of moving electron = 5.12 MeV
+// The momentum of moving electron = 2.99e-021 kg-m/s
\ No newline at end of file |