Learn R Programming

cosmoFns (version 1.1-1)

D.A: Angular diameter distance

Description

Function computes angular diameter distance

Usage

D.A(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

Angular distance in Mpc

References

Hogg (2000), arXiv:astro-ph/9905116, equation (18)

Examples

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

z <- seq(0.1, 5, 0.1)
d <- D.A(z)
plot(z, d/max(d), t='l', xlab='z', ylab='Normalized D.A')

# }

Run the code above in your browser using DataLab