distance.comoving {CRAC}R Documentation

compute the comoving distance (line-of-sight) [Mpc/h]

Description

compute the comoving distance (line-of-sight) [Mpc/h]

Usage

distance.comoving(z, cosmo, z0 = 0, ...)

Arguments

z

redshift upper limit

cosmo

cosmological parameter list

z0

redshift lower limit

...

pass to integrate() to control integration accuracy.

Value

Comoving distance from z_0(=0) to z to z [Mpc/h]

References

Equation (15) in [H99]

Examples

distance.comoving(0.2,parameter.fidcosmo,z0=0.3)
sapply(seq(0,1,0.1),function (x) distance.comoving(x,parameter.fidcosmo))

[Package CRAC version 1.0 Index]