FUNCTION  fCosmoZfromDa

Returns a row with the first and second solution for the redshift, given an angular diameter distance.

Parameters:
  • @AngularDiamDist float: angular diameter distance in Mpc.
  • @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 table (z1 float, z2 float): one row table where z1 and z2 are the first and second solutions, and z1<=z2.
    select * from dbo.fCosmoZfromDa(380.467098233731,0.27891507,0.721,8.493e-5,-1,0.701); select * from dbo.fCosmoZfromDa(380.467098233731,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT)
    return the rows 0.0999999999999999 29.5344556200345 and 0.0999999999999999 29.5344556200345
    see also fCosmoDa
  • Input and output parameters

    nametypelengthinoutpnum
    @AngularDiamDistfloat8input1
    @OmegaMfloat8input2
    @OmegaLfloat8input3
    @OmegaRfloat8input4
    @omega0float8input5
    @h_0float8input6
    z1float8output1
    z2float8output2