univAge
|
univAge(z,h0=,k=,lambda0=,Omega_m=,q0=,silent=)
See IDL routine...
PURPOSE:
Calculate age of the universe in s
EXPLANATION:
The luminosity distance in the Friedmann-Robertson-Walker model is
taken from Caroll, Press, and Turner (1992, ARAA, 30, 499), p. 511
Uses a closed form (Mattig equation) to compute the distance when the
cosmological constant is zero. Otherwise integrates the function using
simpson_cosmo.
EXAMPLE:
Plot the distance of a galaxy in Mpc as a function of redshift out
to z = 5.0, assuming the default cosmology (Omega_m=0.3, Lambda = 0.7,
H0 = 70 km/s/Mpc)
z = span(0,5,50);
plg,lumdist(z),z;
xytitles,"z","Distance (Mpc)"
interpreted function, defined at contrib/cosmo.i line 215
|