Lesson 13 of 15
Four-Vectors
Four-Vectors
In special relativity, space and time mix under Lorentz transformations. The natural language for this is 4-vectors — objects with one time component and three space components that transform covariantly.
Common 4-Vectors
| Name | Components |
|---|---|
| 4-position | |
| 4-velocity | |
| 4-momentum |
Minkowski Norm
Using the signature, the Minkowski norm squared is:
This quantity is Lorentz-invariant — all observers agree on it.
Invariant Mass
For the 4-momentum, the norm gives the invariant mass:
A lightlike vector (photon) has . A timelike vector has .
Your Task
Implement:
minkowski_norm_sq(at, ax, ay, az)— computesinvariant_mass(E, px, py, pz)— returns mass in kg given in J and momentum in kg⋅m/s
Use m/s defined inside each function that needs it.
Python runtime loading...
Loading...
Click "Run" to execute your code.