22 #include <lal/LALConstants.h>
23 #include <lal/LALDetectors.h>
24 #include <lal/Units.h>
25 #include <lal/LALSimSGWB.h>
48 double alpha, alphasq, sinalpha, cosalpha;
50 double rho1,
rho2, rho3;
51 double dd, sdds, sds1, sds2;
59 d = sqrt(
s[0]*
s[0] +
s[1]*
s[1] +
s[2]*
s[2]);
64 for (
i = 0;
i < 3; ++
i)
65 for (j = 0; j < 3; ++j)
80 sinalpha = sin(
alpha);
81 cosalpha = cos(
alpha);
86 j_2 = 3.0*sinalpha/(
alpha*alphasq) - 3.0*cosalpha/alphasq - sinalpha/
alpha;
89 rho1 = 0.5*( 10.0*alphasq*j_0 - 20.0*
alpha*j_1 + 10.0*j_2)/alphasq;
90 rho2 = 0.5*(-20.0*alphasq*j_0 + 80.0*
alpha*j_1 - 100.0*j_2)/alphasq;
91 rho3 = 0.5*( 5.0*alphasq*j_0 - 50.0*
alpha*j_1 + 175.0*j_2)/alphasq;
94 dd = sdds = sds1 = sds2 = 0.0;
95 for (
i = 0;
i < 3; ++
i) {
98 for (j = 0; j < 3; ++j) {
109 gam = rho1*dd +
rho2*sdds + rho3*sds1*sds2;
138 fp = fopen(
"orf.dat",
"w");
139 for (f = 1.0; f < 10000.0; f *= 1.01)
140 fprintf(fp,
"%f %f %f %f\n", f,
void LALCheckMemoryLeaks(void)
static vector d(const double L_norm, const double J_norm, const vector roots)
Internal function that returns the coefficients "d_0", "d_2" and "d_4" from 1703.03967 corresponding ...
int main(int argc, char *argv[])
const LALDetector lalCachedDetectors[LAL_NUM_DETECTORS]
double XLALSimSGWBOverlapReductionFunction(double f, const LALDetector *detector1, const LALDetector *detector2)
Computes the overlap reduction function between two detectors at a specified frequency.
void XLALAbortErrorHandler(const char *func, const char *file, int line, int errnum)
XLALErrorHandlerType * XLALSetErrorHandler(XLALErrorHandlerType *newHandler)