summaryrefslogtreecommitdiff
path: root/1970/CH4/EX4.15/Ch04Exa15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1970/CH4/EX4.15/Ch04Exa15.sce')
-rwxr-xr-x1970/CH4/EX4.15/Ch04Exa15.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1970/CH4/EX4.15/Ch04Exa15.sce b/1970/CH4/EX4.15/Ch04Exa15.sce
new file mode 100755
index 000000000..45286bf66
--- /dev/null
+++ b/1970/CH4/EX4.15/Ch04Exa15.sce
@@ -0,0 +1,14 @@
+// Scilab code Exa4.15 : : Page 182 (2011)
+clc; clear;
+p = 100; // Momentum of the particle, GeV
+n = 1+1.35e-04; // Refractive index of the gas
+m_0 = 1; // Mass, GeV per square coulomb
+gama = sqrt((p^2+m_0^2)/m_0); // Boost parameter
+bta = sqrt (1-1/gama^2); // Relativistic parameter
+d_theta = 1e-003; // Error in the emission angle, radian
+theta = acos(1/(n*bta)); // Emision angle of photon, radian
+F_err = (p^2*n^2*2*theta*10^-3)/(2*m_0^2); // Fractional error
+printf("\nThe fractional error in rest mass of the particle = %4.2f", F_err);
+
+// Result
+// The fractional error in rest mass of the particle = 0.13 \ No newline at end of file