In 1929, Edwin Hubble discovered something terrifying: the universe isnβt static. Itβs exploding outwards. Every galaxy is moving away from us, and the farther away they are, the faster they go.
This relationship is governed by Hubbleβs Law:
$$v = H_0 \cdot D$$
Where $v$ is the recession velocity (km/s), $D$ is the distance (Megaparsecs), and $H_0$ is the Hubble Constant (~70 km/s/Mpc).
Here is a Python script to calculate how fast a galaxy 50 million light-years away is retreating from us:
``