23 #include <lal/LALDatatypes.h>
99 #define FINDROOTH_ENULL 1
100 #define FINDROOTH_EIDOM 2
101 #define FINDROOTH_EMXIT 4
102 #define FINDROOTH_EBRKT 8
106 #define FINDROOTH_MSGENULL "Null pointer"
107 #define FINDROOTH_MSGEIDOM "Invalid initial domain"
108 #define FINDROOTH_MSGEMXIT "Maximum iterations exceeded"
109 #define FINDROOTH_MSGEBRKT "Root not bracketed"
void LALDBracketRoot(LALStatus *status, DFindRootIn *inout, void *params)
void LALSBracketRoot(LALStatus *status, SFindRootIn *inout, void *params)
REAL8 XLALDBisectionFindRoot(REAL8(*y)(REAL8, void *), REAL8 xmin, REAL8 xmax, REAL8 xacc, void *params)
int XLALDBracketRoot(REAL8(*y)(REAL8, void *), REAL8 *xmin, REAL8 *xmax, void *params)
void LALDBisectionFindRoot(LALStatus *status, REAL8 *root, DFindRootIn *input, void *params)
void LALSBisectionFindRoot(LALStatus *status, REAL4 *root, SFindRootIn *input, void *params)
double REAL8
Double precision real floating-point number (8 bytes).
float REAL4
Single precision real floating-point number (4 bytes).
These are function pointers to functions that map REAL8 numbers to REAL8 numbers.
REAL8 xacc
The accuracy desired for the root.
REAL8 xmax
The maximum value of the domain interval to look for the root.
REAL8 xmin
The minimum value of the domain interval to look for the root.
LAL status structure, see The LALStatus structure for more details.
These are function pointers to functions that map REAL4 numbers to REAL4 numbers.
REAL4 xacc
The accuracy desired for the root.
REAL4 xmax
The maximum value of the domain interval to look for the root.
REAL4 xmin
The minimum value of the domain interval to look for the root.