summaryrefslogtreecommitdiff
path: root/1646/CH1/EX1.14/Ch01Ex14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1646/CH1/EX1.14/Ch01Ex14.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 '1646/CH1/EX1.14/Ch01Ex14.sce')
-rwxr-xr-x1646/CH1/EX1.14/Ch01Ex14.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1646/CH1/EX1.14/Ch01Ex14.sce b/1646/CH1/EX1.14/Ch01Ex14.sce
new file mode 100755
index 000000000..2a10c051d
--- /dev/null
+++ b/1646/CH1/EX1.14/Ch01Ex14.sce
@@ -0,0 +1,20 @@
+// Scilab Code Ex1.14: Page:33 (2011)
+clc;clear;
+c = 1; // Assume speed of light in vacuum to be unity, unit
+m0 = 1; // For simplicity assume rest mass of the particle to be unity, unit
+v = c/sqrt(2); // Given speed of the particle, m/s
+gama = 1/sqrt(1-v^2/c^2); // Relativistic factor
+m = gama*m0; // The relativistic mass of the particle, unit
+p = m*v; // The relativistic momentum of the particle, unit
+E = m*c^2; // The relativistic total eneryg of the particle, unit
+E_k = (m-m0)*c^2; // The relativistic kinetic energy of the particle, unit
+printf("\nThe relativistic mass of the particle = %5.3fm0", m);
+printf("\nThe relativistic momentum of the particle = %1.0gm0c", p);
+printf("\nThe relativistic total energy of the particle = %5.3fm0c^2", E);
+printf("\nThe relativistic kinetic energy of the particle = %5.3fm0c^2", E_k);
+
+// Result
+// The relativistic mass of the particle = 1.414m0
+// The relativistic momentum of the particle = 1m0c
+// The relativistic total energy of the particle = 1.414m0c^2
+// The relativistic kinetic energy of the particle = 0.414m0c^2 \ No newline at end of file