/*
 * SUMMARY:      brent.h - header file for the brent method
 * USAGE:        Part of DHSVM
 *
 * AUTHOR:       Bart Nijssen
 * ORG:          University of Washington, Department of Civil Engineering
 * E-MAIL:       nijssen@u.washington.edu
 * ORIG-DATE:    Apr-1996
 * LAST-MOD: Tue Apr  3 09:06:43 2001 by Scott Waichler <waichler@tuff.pnl.gov>
 * DESCRIPTION:  header file for the brent method
 * DESCRIP-END.
 * FUNCTIONS:    
 * COMMENTS:     
 */

/* 	$Id: brent.h,v 1.3 2001/04/04 16:43:51 waichler Exp $	 */

#ifndef BRENT_H
#define BRENT_H

float RootBrent(int y, int x, float LowerBound, float UpperBound, float MinTemp, float MaxTemp, 
                float (*Function)(float Estimate, va_list ap), ...);

#define MACHEPS      3e-8	/* machine floating point precision (float) */

#define T            1e-5	/* tolerance */

#define MAXITER      1000	/* maximum number of allowed iterations */

#define MAXTRIES     15        /* maximum number of tries to bracket the 
                                   root */

#define TSTEP        10       /* step to take in both directions if
                                   attempting to bracket thr root  */

#define MIN_SNOW_TEMP  -40

#define MIN_SOIL_TEMP  -10

#define MAX_SOIL_TEMP  60

#endif
