The calling sequence for calc_vol is:
result = calc_vol(z,,
,H0=x,w=y)
where x is a value for the hubble constant and y is a value for w (
). For ``normal'' physics, use w = -1 (see section IIIA above). z can be a scalar or an array. If it is scalar, result is a scalar comoving volume element. If z is an array, result is an array with the comoving volume element for each z value in the array. The parameters
,
must be specified, whereas H0 and w can be omitted. H0 has to be given in terms of
.
If omitted, H0 is internally set to 50. If w is omitted, it is internally set to -1.
Note that the function calc_vol needs much more runtime than the other routines because three values for dM have to be calculated for each point
(see section VIF below for more information on this).