Learn R Programming

cosmoFns (version 1.1-1)

D.M: Comoving distance

Description

Function computes comoving distance in a flat cosmology.

Usage

D.M(z, omega.m = 0.27, omega.lambda = 0.73, H.0 = 71)

Arguments

z

Redshift

omega.m

Omega matter parameter

omega.lambda

Omega lambda parameter

H.0

Hubble constant in km/s/Mpc

Value

Comoving distance in Mpc

References

Hogg (2000), arXiv:astro-ph/9905116, equations (16) and (15)

Examples

Run this code
# NOT RUN {
D.M(2.3)
# }

Run the code above in your browser using DataLab