Bases: astropy.cosmology.core.wCDM
FLRW cosmology with a constant dark energy equation of state and no spatial curvature.
This has one additional attribute beyond those of FLRW.
Parameters : | H0 : float or astropy.units.Quantity
Om0 : float
w0 : float
Tcmb0 : float or astropy.units.Quantity
Neff : float
m_nu : astropy.units.Quantity
name : str
|
---|
Examples
>>> from astropy.cosmology import FlatwCDM
>>> cosmo = FlatwCDM(H0=70, Om0=0.3, w0=-0.9)
The comoving distance in Mpc at redshift z:
>>> z = 0.5
>>> dc = cosmo.comoving_distance(z)
Methods Summary
efunc(z) | Function used to calculate H(z), the Hubble parameter. |
inv_efunc(z) | Function used to calculate \frac{1}{H_z}. |
Methods Documentation
Function used to calculate H(z), the Hubble parameter.
Parameters : | z : array_like
|
---|---|
Returns : | E : ndarray, or float if input scalar
|
Notes
The return value, E, is defined such that H(z) = H_0 E.
Function used to calculate \frac{1}{H_z}.
Parameters : | z : array_like
|
---|---|
Returns : | E : ndarray, or float if input scalar
|
Notes
The return value, E, is defined such that H_z = H_0 / E.