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
LALEtaTau02.c
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Duncan Brown, Jolien Creighton, 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 Given \f$\tau_0\f$ and \f$\tau_2\f$ compute the mass ratio \f$\eta.\f$
26 *
27 * ### Description ###
28 *
29 * Given \f$\tau_0\f$ and \f$\tau_2\f$ one can determine \f$\eta\f$ by solving
30 * \f{equation}{
31 * -\eta^{2/5} \tau_2 + A_2 \left ( \frac {\tau_0}{A_0} \right )^{3/5}
32 * \left (1 + B_2\eta \right ) = 0,
33 * \f}
34 * where \f$A_0 = 5/[256 (\pi f_{s} )^{8/3}],\f$ \f$A_2 = 3715 / [64512 (\pi f_s)^2],\f$
35 * \f$B_2 = 4620/3715.\f$
36 * This function returns the LHS of the above
37 * equation in \c x for a given \c eta.
38 *
39 * ### Algorithm ###
40 *
41 * None.
42 *
43 * ### Uses ###
44 *
45 * None.
46 *
47 * ### Notes ###
48 *
49 * The void pointer} <tt>*p</tt> should point to a struct
50 * of type \c EtaTau02In :
51 * \code
52 * {
53 * void *p;
54 * EtaTau02In q;
55 * ...
56 * p = (void *) &q;
57 * }
58 * \endcode
59 *
60 */
61
62#include <math.h>
63#include <lal/LALInspiral.h>
64
65void
68 REAL8 *x,
69 REAL8 eta,
70 void *p
71 )
72{
73 XLAL_PRINT_DEPRECATION_WARNING("XLALEtaTau02");
74
77 ASSERT (x, status, LALINSPIRALH_ENULL, LALINSPIRALH_MSGENULL);
78
79 *x = XLALEtaTau02(eta, p);
82
85}
86
89 REAL8 eta,
90 void *p
91 )
92{
93 REAL8 x;
95
96 if (p == NULL)
98 if (eta <= 0)
100
101 q = (EtaTau02In *) p;
102 x = -q->t2 + q->A2/pow(eta,0.4) * (1. + q->B2*eta);
103
104 return x;
105}
void LALEtaTau02(LALStatus *status, REAL8 *x, REAL8 eta, void *p)
Definition: LALEtaTau02.c:66
REAL8 XLALEtaTau02(REAL8 eta, void *p)
Definition: LALEtaTau02.c:88
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
#define ABORTXLAL(sp)
double REAL8
#define LALINSPIRALH_ENULL
Arguments contained an unexpected null pointer.
Definition: LALInspiral.h:56
static const INT4 q
#define XLAL_ERROR_REAL8(...)
#define XLAL_PRINT_DEPRECATION_WARNING(replacement)
#define XLAL_IS_REAL8_FAIL_NAN(val)
XLAL_EFAULT
XLAL_EDOM
p
x
These are the input structures needed to solve for the mass ratio given the chirptimes or .
Definition: LALInspiral.h:150