FUNCTION  fCosmoComovDist2ObjectsXYZ

Returns the comoving distance between 2 objects at different redshifts locations in the sphere.

Parameters:
  • @Redshift1 float: redshift of object 1.
  • @x1 float: x-coordinate of object 1.
  • @y1 float: y-coordinate of object 1.
  • @z1 float: z-coordinate of object 1.
  • @Redshift2 float: redshift of object 2.
  • @x2 float: x-coordinate of object 2.
  • @y2 float: y-coordinate of object 2.
  • @z2 float: z-coordinate of object 2.
  • @OmegaM float: matter density. If set as DEFAULT, then 0.27891507
  • @OmegaL float: dark energy density. If set as DEFAULT, then 0.721
  • @OmegaR float: radiation density. If set as DEFAULT, then 8.493e-5
  • @omega0 float: dark energy state equation. If set as DEFAULT, then -1
  • @h_0 float: (hubble constant[Km/s/MPc])/(100[Km/s/MPc]). If set as DEFAULT, then 0.701 Reference: http://lambda.gsfc.nasa.gov/product/map/dr3/pub_papers/fiveyear/cosmology/wmap_5yr_cosmo.pdf
  • returns ComovDist float: comoving distance between the two objects.
    select dbo.fCosmoComovDist2ObjectsXYZ(0.1,0,0,1,0.1,0,0,-1,0.27891507,0.721,8.493e-5,-1,0.701);select dbo.fCosmoComovDist2ObjectsXYZ(0.1,0,0,1,0.1,0,0,-1,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT)
    return 837.027616114209 and 837.027616114209
    see also fCosmoZfromDc
  • Input and output parameters

    nametypelengthinoutpnum
     float8input0
    @Redshift1float8input1
    @x1float8input2
    @y1float8input3
    @z1float8input4
    @Redshift2float8input5
    @omega0float8input12
    @h_0float8input13
    @x2float8input6
    @y2float8input7
    @z2float8input8
    @OmegaMfloat8input9
    @OmegaLfloat8input10
    @OmegaRfloat8input11