An equation for the calculation of the comoving volume element is given by Carroll, Press & Turner [1], but they give an equation in terms of the proper motion distance. The equation is:
![]() |
(8) |
dM is taken from eq. 4, so it makes use of the w parameter. This implies that for w = -1, eq. 4 for the proper motion distance reduces to eq. 3 so w takes no effect in the calculation of the comoving volume element. As the function calc_vol should use z instead of dM as a parameter, this equation has to be modified. The resulting equation for the desired derivative
is