Length Contraction
Length Contraction
Special relativity does not only affect time — it also affects space. A moving object is shorter along its direction of motion as measured by a stationary observer.
The Formula
If an object has rest length (measured in its own rest frame), then in a frame where the object moves at velocity , its measured length is:
Because , the observed length . At : . As : .
Only the dimension along the direction of motion contracts. Perpendicular dimensions are completely unchanged.
Recovering the Rest Length
Inverting the relation:
If you know the contracted length and the speed, you can recover the rest length.
Symmetry
Contraction is reciprocal: if frame sees frame 's objects as shortened, then frame equally sees frame 's objects as shortened by the same factor. Neither frame is privileged. The effect is real but not an optical illusion — it reflects the geometry of spacetime.
Example: A Spaceship
A spaceship of rest length m traveling at (where ) appears only m long to an observer at rest. To the astronauts on board, the ship is still m.
Your Task
Implement:
length_contraction(L0, v)— returns contracted lengthrest_length(L, v)— returns rest length
Use m/s, defined inside each function.