diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1970/CH4/EX4.14/Ch04Exa14.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1970/CH4/EX4.14/Ch04Exa14.sce')
-rwxr-xr-x | 1970/CH4/EX4.14/Ch04Exa14.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1970/CH4/EX4.14/Ch04Exa14.sce b/1970/CH4/EX4.14/Ch04Exa14.sce new file mode 100755 index 000000000..282c5eadd --- /dev/null +++ b/1970/CH4/EX4.14/Ch04Exa14.sce @@ -0,0 +1,15 @@ +// Scilab code Exa4.14 : : Page 181 (2011)
+clc; clear;
+m_p = 0.938; // Mass of the proton, GeV
+E = 1.4; // Total energy of proton, GeV
+gama = E/m_p; // Boost parameter
+bta = sqrt(1-1/gama^2); // Relativistic factor
+d = 10; // Distance between two counters,m
+C = 3e+08; // Velocity of light ,m/s
+t_p = d/(bta*C); // Time of flight of proton ,sec
+T_e = d/C; // Time of flight of electron, sec
+printf("\nTime of flight of proton: %4.2f ns \nTime of flight of electron : %4.2f ns ", t_p/1e-009, T_e/1e-009);
+
+// Result
+// Time of flight of proton: 44.90 ns
+// Time of flight of electron : 33.33 ns
\ No newline at end of file |