FUNCTION  fCosmoComovDist2ObjectsRADEC

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

Parameters:
  • @Redshift1 float: redshift of object 1.
  • @Ra1 float: right asension of object 1 in degrees.
  • @Dec1 float: declination of object 1 in degrees.
  • @Redshift2 float: redshift of object 2.
  • @Ra2 float: right asension of object 2 in degrees.
  • @Dec2 float: declination of object 2 in degrees.
  • @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.fCosmoComovDist2ObjectsRADEC(0.1,0,90,0.1,0,-90,0.27891507,0.721,8.493e-5,-1,0.701);select dbo.fCosmoComovDist2ObjectsRADEC(0.1,0,90,0.1,0,-90,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT)
    return 837.027616114209 and 837.027616114209
    see also fCosmoZfromDc
  • Input and output parameters

    nametypelengthinoutpnum
     float8input0
    @Redshift1float8input1
    @Ra1float8input2
    @Dec1float8input3
    @Redshift2float8input4
    @Ra2float8input5
    @Dec2float8input6
    @OmegaMfloat8input7
    @OmegaLfloat8input8
    @OmegaRfloat8input9
    @omega0float8input10
    @h_0float8input11