Learn R Programming

CRAC (version 1.0)

distance.comoving: 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

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

Run the code above in your browser using DataLab