Schwarzschild Radius
Schwarzschild Radius
In 1916, Karl Schwarzschild found the first exact solution to Einstein's field equations — the geometry of spacetime surrounding a spherically symmetric, non-rotating mass . The most famous prediction of this solution is the Schwarzschild radius , the radius at which the escape velocity equals the speed of light:
where m³ kg⁻¹ s⁻² is Newton's gravitational constant and m/s.
If a mass is compressed inside a sphere of radius , spacetime curves so severely that nothing — not even light — can escape. That boundary is the event horizon of a black hole.
Typical Values
| Object | Mass (kg) | |
|---|---|---|
| Earth | mm | |
| Sun | km | |
| 1 kg | m |
The Sun would need to be squeezed to a ball less than 3 km across to become a black hole. Earth's Schwarzschild radius is smaller than a penny.
Compactness
A useful dimensionless measure is the compactness — the ratio of the Schwarzschild radius to the actual radius:
For the Sun, (very Newtonian). For a neutron star, .
Your Task
Implement three functions. All physical constants must be defined inside each function body.
schwarzschild_radius(M)— returns in metresschwarzschild_mass(r_s)— inverse: given , returnscompactness(M, R)— returns