*** Sheth&Tormen's Halo Bias *** December 5, 2010: E.Komatsu Ref. Eqs[68-70] of Cooray & Sheth, Phys. Rept., 372, 1 (2002) with typos corrected. The linear bias parameter, b1, is given by b1(nu) = 1d0+ep1+E1, where ep1 = (q*nu-1d0)/delc, E1 = 2d0*p/delc/(1d0+(q*nu)**p), and q=0.707, p=0.3, delc=1.6865. Non-linear bias parameters, b2 and b3, are given in the above reference. Here, the argument "nu" is related to the smoothing radius, R, via nu = [delc/sigma(R,z)]^2. Finally, R is related to the mass, M, via M = (4pi/3)rho_matter R^3, where rho_matter = 2.775e11*omega_matter [h^2 Msun/Mpc^3] To compute sigma(R,z), it is necessary to use the input linear power spectrum. We provide the sample data, "wmap5baosn_max_likelihood_matterpower.dat," which was generated using CAMB code for the maximum likelihood parameters given in Table I of Komatsu et al.(2008) [WMAP 5-year interpretation paper] with "WMAP5+BAO+SN". The input file for CAMB is also provided (wmap5baosn_max_likelihood_params.ini). NOTE THAT THIS POWER SPECTRUM IS COMPUTED AT Z=0. Another power spectrum, evolved back to z=30, is provided as "wmap5baosn_max_likelihood_matterpower_at_z=30.dat". (1) Put "USE linearpk" at the beginning of the program (2) Put "USE sigma" at the beginning of the program (3) CALL open_linearpk(filename,n) where "filename" contains the name of power spectrum file (character), and n is the number of lines in the file (integer) (4) CALL compute_sigma2 (5) To compute ln(sigma^2), use a single-precision function CHEBEV(lnR1,lnR2,c,ndim,lnRh), where lnR1, lnR2, c and ndim have been pre-computed already by the step (3). The only argument you need to enter is the logarithm of the scale at which you want to compute ln(sigma^2), lnRh, which is in single precision. Note again that Rh is in units of h^-1 Mpc! (6) To convert ln(sigma^2) to ln(nu), use 2*ln(deltac)-ln(sigma^2), where deltac=1.6865 (7) Compute b1(nu), b2(nu), and b3(nu) - To compile and use the sample programs (given below), edit Makefile and simply "./make" - It will generate executables called "sample" and "compute_bias" ========================================================================= A simple program to use "shethtormen.f90" (also included as "sample.f90" in this directory): USE linearpk USE sigma double precision :: deltac=1.6865d0,b1,b2,b3 double precision :: lnnu,Mh REAL :: chebev REAL :: lnsigma2,lnRh,Rh character(len=128) :: filename integer :: n filename='wmap5baosn_max_likelihood_matterpower.dat' n=896 ! # of lines in the file CALL open_linearpk(filename,n) CALL compute_sigma2 CALL close_linearpk Rh=8. ! h^-1 Mpc lnRh = alog(Rh) if(lnRh>lnR2.or.lnRh