summaryrefslogtreecommitdiff
path: root/2411/CH4/EX4.11/Ex4_11.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2411/CH4/EX4.11/Ex4_11.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 '2411/CH4/EX4.11/Ex4_11.sce')
-rwxr-xr-x2411/CH4/EX4.11/Ex4_11.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2411/CH4/EX4.11/Ex4_11.sce b/2411/CH4/EX4.11/Ex4_11.sce
new file mode 100755
index 000000000..6fe9d5e56
--- /dev/null
+++ b/2411/CH4/EX4.11/Ex4_11.sce
@@ -0,0 +1,14 @@
+// Scilab Code Ex4.11: Page-238 (2008)
+clc; clear;
+c = 3e+008; // Speed of light in vacuum, m/s
+v = 0.99*c; // Speed of the electron, m/s
+m0 = 9.1e-031; // Rest mass of the electron, kg
+m = m0/sqrt(1-v^2/c^2); // Moving mass of the electron, kg
+E = m*c^2; // Total energy of the electron, J
+printf("\nThe total energy of the electron = %4.2e J", E);
+KE_ratio = m0/(2*(m-m0))*(v/c)^2; // Ratio of Newtonian kinetic energy to the relativistic kinetic energy
+printf("\nThe ratio of Newtonian kinetic energy to the relativistic kinetic energy = %4.2f", KE_ratio);
+
+// Result
+// The total energy of the electron = 5.81e-013 J
+// The ratio of Newtonian kinetic energy to the relativistic kinetic energy = 0.08 \ No newline at end of file