gals/
ajs_comdis.pro
Return comoving distance to z, in Mpc
Routines
- result = ajs_comdis_er(z)
- Integrand for comoving distance integral 
- result = ajs_lookback_er(z)
- Integrand for lookback time integral 
- result = ajs_comdis(z [, omega_m=omega_m] [, omega_l=omega_l] [, h0=h0] [, c=c] [, slow=slow] [, lookback_time=lookback_time])
- Return comoving distance to z, in Mpc 
Routine details
topajs_comdis
result = ajs_comdis(z [, omega_m=omega_m] [, omega_l=omega_l] [, h0=h0] [, c=c] [, slow=slow] [, lookback_time=lookback_time])
Return comoving distance to z, in Mpc
Parameters
- z
- Redshift (or array of values) 
Keywords
- omega_m in optional
- Matter density (default 0.3) 
- omega_l in optional
- Vacuum energy density (default 0.7) 
- h0 in optional
- Hubble constant (default 100) 
- c in optional
- Speed of light (default 299792.458 km/s) 
- slow in optional
- Set /slow to force calculation for each value (defaults to interpolation if input array has more then 10,000 elements) 
- lookback_time in optional
- Set /lookback_time to return lookback time in seconds. See ajs_lookback_time and ajs_zage. 
Author information
| History: | 13 Mar 2008 Written, Anthony Smith 10 Oct 2008 Added lookback_time, AJS 16 Jan 2009 Corrected bug, which was affecting large input arrays | 
File attributes
| Modifcation date: | Fri Jan 16 14:22:57 2009 | 
| Lines: | 87 | 
| Docformat: | rst rst | 
![[attach.png]](../idldoc-resources/attach.png)