Method

NumCosmoDistancecosmic_time

Declaration [src]

gdouble
nc_distance_cosmic_time (
  NcDistance* dist,
  NcHICosmo* cosmo,
  const gdouble z
)

Description [src]

This function computes the cosmological time, $t(z)$, defined as \begin{equation} t(z) = \int_z^{\infty} \frac{dx}{(1+x)E(x)}. \end{equation}.

Parameters

cosmo

Type: NcHICosmo

A NcHICosmo.

The data is owned by the caller of the method.
z

Type: const gdouble

Redshift $z$.

Return value

Type: gdouble

$t(z)$.