Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInspiral 5.0.3.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInspiralPhiofVIntegrand.c
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 David Churches, B.S. Sathyaprakash, Drew Keppel
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20/**
21 * \author Sathyaprakash, B. S.
22 * \file
23 * \ingroup LALInspiral_h
24 *
25 * \brief The function \c XLALInspiralPhiofVIntegrand() calculates the quantity \f$v^{3} E^{\prime}(v)/\mathcal{F}(v)\f$.
26 *
27 * ### Prototypes ###
28 *
29 * <tt>LALInspiralPhiofVIntegrand()</tt>
30 *
31 * ### Description ###
32 *
33 * The function \c XLALInspiralPhiofVIntegrand() calculates the quantity \f$v^{3} E^{\prime}(v)/\mathcal{F}(v)\f$.
34 *
35 * ### Uses ###
36 *
37 * This function calls \c dEnergy and \c flux functions that are defined in the
38 * \c expnFunc structure and represent \f$E^{\prime}(v)\f$ and \f$\mathcal{F}(v)\f$, respectively,
39 * and pointed to the appropriate PN functions with a call to <tt>XLALInspiralChooseModel().</tt>
40 *
41 * ### Notes ###
42 *
43 */
44
45#include <math.h>
46#include <lal/LALAtomicDatatypes.h>
47#include <lal/LALInspiral.h>
48#include <lal/XLALError.h>
49
52 REAL8 v,
53 void *params
54 )
55{
56 REAL8 integrand;
58
59 if (params == NULL)
61 if (v <= 0.)
63 if (v >= 1.)
65
67
68 integrand = pow (v, 3.) * in->dEnergy(v,in->coeffs)/in->flux(v,in->coeffs);
69
70 return integrand;
71}
REAL8 XLALInspiralPhiofVIntegrand(REAL8 v, void *params)
double REAL8
#define XLAL_ERROR_REAL8(...)
XLAL_EFAULT
XLAL_EDOM
Structures used to compute the phase of the signal from the ‘beginning’, when the veolcity parameter ...
Definition: LALInspiral.h:669
expnCoeffs * coeffs
Definition: LALInspiral.h:672
EnergyFunction * dEnergy
Definition: LALInspiral.h:670
FluxFunction * flux
Definition: LALInspiral.h:671