Comoving distance in Mpc at redshift z.
The comoving distance along the line-of-sight between two objects remains constant with time for objects in the Hubble flow.
z : array_like
Input redshifts.
codist : ndarray, or float if input scalar
Comoving distance at each input redshift.