00001 /* 00002 * Copyright (C) 2007 Duncan Brown, Jolien Creighton, B.S. Sathyaprakash 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with with program; see the file COPYING. If not, write to the 00016 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00017 * MA 02111-1307 USA 00018 */ 00019 00020 /* <lalVerbatim file="LALEtaTau04CV"> 00021 Author: Sathyaprakash, B. S. 00022 $Id: LALEtaTau04.c,v 1.10 2007/06/08 14:41:49 bema Exp $ 00023 </lalVerbatim> */ 00024 00025 /* <lalLaTeX> 00026 00027 \subsection{Module \texttt{LALEtaTau04.c}} 00028 Given $\tau_0$ and $\tau_4$ solve for the mass ratio $\eta.$ 00029 \subsubsection*{Prototypes} 00030 \vspace{0.1in} 00031 \input{LALEtaTau04CP} 00032 \idx{LALEtaTau04()} 00033 00034 \subsubsection*{Description} 00035 Given $\tau_0$ and $\tau_4$ one can determine $\eta$ by solving 00036 \begin{equation} 00037 -\eta^{4/5} \tau_4 + A_4 \left ( \frac {\tau_0}{A_0} \right )^{1/5} 00038 \left (1 + B_4\eta + C_4 \eta^2 \right ) = 0, 00039 \end{equation} 00040 where $A_0 = 5/[256 (\pi f_{s} )^{8/3}],$ 00041 $A_4 = 5 \times 3058673/ [128 \times 1016064 (\pi f_s)^{4/3}],$ 00042 $B_4 = 5429 \times 1016064 /(1008 \times 3058673),$ and $C_4 = 617 \times 00043 1016064/(144 \times 3058673).$ 00044 This function returns the LHS of the above 00045 equation in \texttt{x} for a given \texttt{eta}. 00046 00047 00048 \subsubsection*{Algorithm} 00049 None. 00050 00051 \subsubsection*{Uses} 00052 None. 00053 00054 \subsubsection*{Notes} 00055 The {\tt void pointer} {\tt *p} should point to a {\tt struct} 00056 of type {\tt EtaTau04In}\\[10pt] 00057 {\tt 00058 void *p;\\ 00059 EtaTau04In q;\\[5pt] 00060 $\ldots$\\ 00061 p = (void *) \&q;\\ 00062 } 00063 </lalLaTeX> */ 00064 00065 #include <lal/LALInspiral.h> 00066 00067 NRCSID (LALETATAU04C, "$Id: LALEtaTau04.c,v 1.10 2007/06/08 14:41:49 bema Exp $"); 00068 /* <lalVerbatim file="LALEtaTau04CP"> */ 00069 void 00070 LALEtaTau04( 00071 LALStatus *status, 00072 REAL8 *x, 00073 REAL8 eta, 00074 void *p 00075 ) 00076 { /* </lalVerbatim> */ 00077 EtaTau04In *q; 00078 INITSTATUS(status, "LALEtaTau04", LALETATAU04C); 00079 ATTATCHSTATUSPTR(status); 00080 ASSERT (p, status, LALINSPIRALH_ENULL, LALINSPIRALH_MSGENULL); 00081 ASSERT(eta > 0, status, LALINSPIRALH_ESIZE, LALINSPIRALH_MSGESIZE); 00082 00083 q = (EtaTau04In *) p; 00084 *x = -q->t4 + q->A4/pow(eta,0.8) * (1. + q->B4*eta + q->C4*eta*eta); 00085 DETATCHSTATUSPTR(status); 00086 RETURN(status); 00087 }
1.5.2