EnzoCosmology.
t_from_z
(z)¶Compute the age of the Universe from redshift. This is based on Enzo’s CosmologyComputeTimeFromRedshift.C, but altered to use physical units. Similar to hubble_time, but using an analytical function.
Parameters: | z : float
|
---|
See also
Examples
>>> co = Cosmology()
>>> print co.t_from_z(0.).in_units("Gyr")