blob: ba3d9e38eb0317e2ad6fbe349dd487e93b597416 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
// Given that
t_ = 2.5e-8 // proper life of pi+ mesons in sec
v = 2.4e8 // velocity of beam of mesons in m/sec
r = 1 / exp(2) // ratio of final flux to initial flux of the meson beam
// Sample Problem 23 on page no. 11.27
printf("\n # PROBLEM 23 # \n")
printf(" Standard formula used \n")
printf(" t = t_0/((1-v^2/c^2)^1/2) \n N = N_0*e^(-t/tau) \n")
t = t_ / sqrt(1 - (v / 3e8)^2)
T = t * log(1 / r)
d = T * v
printf("\n Distance travel by the beam is %f meter.",d)
|