comoving_distance#
Protocols
- StandardCosmology.comoving_distance()#
- DistanceMeasures.comoving_distance()#
- ComovingDistanceMeasures.comoving_distance()#
- HasComovingDistance.comoving_distance()#
Reference
- cosmo.comoving_distance(z: InputT, /) Array#
- cosmo.comoving_distance(z1: InputT, z2: InputT, /) Array
Comoving line-of-sight distance \(d_c\) in Mpc.
The comoving distance along the line-of-sight between two objects remains constant with time for objects in the Hubble flow.
- Parameters:
- z
Array, positional-only - z1, z2
Array, positional-only Input redshifts. If one argument
zis given, the distance \(d_c(0, z)\) is returned. If two argumentsz1, z2are given, the distance \(d_c(z_1, z_2)\) is returned.
- z
- Returns:
ArrayThe comoving distance \(d_c\) in Mpc.