Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

brent.c File Reference

#include <math.h>

Go to the source code of this file.

Defines

#define ITMAX   100
#define CGOLD   0.3819660
#define ZEPS   1.0e-10
#define SIGN(a, b)   ((b) > 0.0 ? fabs(a) : -fabs(a))
#define SHFT(a, b, c, d)   (a)=(b);(b)=(c);(c)=(d);

Functions

float brent (float ax, float bx, float cx, float(*f)(float), float tol, float *xmin)


Define Documentation

#define CGOLD   0.3819660
 

Definition at line 19 of file brent.c.

Referenced by brent().

#define ITMAX   100
 

Definition at line 18 of file brent.c.

Referenced by brent().

#define SHFT a,
b,
c,
     (a)=(b);(b)=(c);(c)=(d);
 

Definition at line 22 of file brent.c.

Referenced by brent(), and mnbrak().

#define SIGN a,
     ((b) > 0.0 ? fabs(a) : -fabs(a))
 

Definition at line 21 of file brent.c.

Referenced by brent(), and mnbrak().

#define ZEPS   1.0e-10
 

Definition at line 20 of file brent.c.

Referenced by brent().


Function Documentation

float brent float    ax,
float    bx,
float    cx,
float(*    f)(float),
float    tol,
float *    xmin
 

Definition at line 24 of file brent.c.

References CGOLD, ITMAX, SHFT, SIGN, and ZEPS.

Referenced by t_direct(), t_lay(), and t_pmp().


Generated on Tue May 6 09:16:14 2003 for Earthworm Libs by doxygen1.3-rc3