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:
zArray, positional-only
z1, z2Array, positional-only

Input redshifts. If one argument z is given, the distance \(d_c(0, z)\) is returned. If two arguments z1, z2 are given, the distance \(d_c(z_1, z_2)\) is returned.

Returns:
Array

The comoving distance \(d_c\) in Mpc.