Problem
One of the key predictions of Special Relativity is time dilation, where a moving clock runs slower compared to a stationary one.
The time dilation formula is given by:
$$
\Delta t’ = \frac{\Delta t}{\gamma}
$$
- $ \Delta t’ $ = Time interval in the moving frame
- $ \Delta t $ = Time interval in the stationary frame
- $ \gamma $ = Lorentz factor
$$
\gamma = \frac{1}{\sqrt{1 - v^2/c^2}}
$$
Here, we will calculate how time dilation changes with velocity and plot it.
1 | import numpy as np |
Explanation of the Code
Constants:
c = 3.0e8
: Speed of light in meters per second.
Velocity Range:
v = np.linspace(0, 0.999 * c, 500)
: Generates velocities from $0$ to $99.9$ % of ( c ).
Lorentz Factor Calculation:
gamma = 1 / np.sqrt(1 - (v / c) ** 2)
: Computes relativistic time dilation.
Plotting:
- X-axis: Velocity as a fraction of speed of light.
- Y-axis: Time dilation factor $ \gamma $.
- Time dilation grows dramatically as velocity approaches $ c $.
Interpreting the Graph
- At low velocities $( v \ll c )$:
Time dilation is negligible $( \gamma \approx 1 )$. - At higher velocities $( v \approx 0.9c )$:
Time dilation becomes significant. - As $ v \to c $:
$ \gamma \to \infty $, meaning time nearly stops for the moving observer.
This explains why astronauts traveling near light speed would age much slower compared to people on Earth.