#include #include #include #include #include #ifdef PARALLEL #include #endif #include "header.h" /* This is the one that Andrew Zentner gave me: * taken from Bunn, Liddle & White (and appears to * give different answers from the Bunn & White functions. */ double cobenorm(double Om) { double Ol, n, f, pwr, g, r=0, d0, cobe_norm; n = SPECTRAL_INDX; Ol = 1 - Om; f= 0.750 - 0.130*(Ol*Ol); pwr = -0.8 - 0.05*log(Om); g = 1.0-0.180*(1.0-n)*Ol - 0.03*r*Ol; d0 = 1.91e-5*(pow(7.0,((n-1.0)/2.0))); cobe_norm = d0*(exp(1.010*(1.0-n))/ sqrt(1.0+r*f))*(pow(Om,pwr))*g; return cobe_norm; } /* Ol = 1.d0-Om f=0.75d0-0.13d0*(Ol**2.d0) pwr = -0.8d0 - 0.05d0*log(Om) g = 1.d0-0.18d0*(1.d0-n)*Ol - 0.03d0*r*Ol d0 = 1.91d-5*(7.d0**((n-1.d0)/2.d0)) cobe_norm = d0*(exp(1.01d0*(1.d0-n))/ & dsqrt(1.d0+r*f))*(Om**pwr)*g */ /* The function below was supplied by Risa Wechsler; * I set it up to always assume flat universe. */ double cobenorm_risa(double omega_m) /* Return the Bunn & White (1997) fit for delta_H */ /* Given lambda, omega_m, qtensors, and tilt */ /* Open model with tensors is from Hu & White */ { // cout<