wcosmo.wcosmo#
Functional implementation of cosmological parameters.
Note
This module is intended to be used as a functional alternative to the
astropy
class-based method. In general, units will be propagated
when using numpy
, but all of the code can also be used without
units. Special care is needed with hubble_distance()
and
hubble_time()
as these functions use constants which have units
unless wcosmo.utils.disable_units()
has been called.
|
Compute the absorption distance using an analytic integral of the Pade approximation. |
|
Compute the comoving distance using an analytic integral of the Pade approximation. |
|
Compute the comoving volume out to redshift z. |
|
Convert masses and luminosity distance from the detector frame to source frame masses and redshift. |
|
Compute the differential comoving volume element. |
|
The Jacobian for the conversion of redshift to luminosity distance. |
|
Compute the \(E(z)\) function for a flat wCDM cosmology. |
|
Compute the Hubble distance \(D_H = c H_0^{-1}\) in Mpc. |
|
Compute the Hubble parameter \(H(z)\) for a flat wCDM cosmology. |
|
Compute the Hubble time \(t_H = H_0^{-1}\) in Gyr. |
|
Compute the inverse of the E(z) function for a flat wCDM cosmology. |
|
Compute the lookback time using an analytic integral of the Pade approximation. |
|
Compute the luminosity distance using an analytic integral of the Pade approximation. |
|
Convert masses and redshift from the source frame to the detector frame. |
|
Compute the redshift at which a function equals a given value. |