wcosmo.wcosmo.hubble_distance#
- wcosmo.wcosmo.hubble_distance(H0, *, xp=<module 'numpy' from '/home/runner/work/wcosmo/wcosmo/.venv/lib/python3.11/site-packages/numpy/__init__.py'>)[source]#
Compute the Hubble distance \(D_H = c H_0^{-1}\) in Mpc.
- Parameters:
- H0: array_like
The Hubble constant in km/s/Mpc
- Returns:
- D_H: float
The Hubble distance in Mpc