bisection.cpp File Reference

Bisection method of root finding code. More...

#include <assert.h>
#include <math.h>
#include "bisection.h"

Include dependency graph for bisection.cpp:

Go to the source code of this file.

Functions

double bisection (double(*f)(double x, double Alpha), double Alpha, double x0, double x1, double eps)
 Looking for roots of function f for given Alpha on the interval x0-x1.


Detailed Description

Bisection method of root finding code.

Author:
Unknown (Numeric recepies?)

Definition in file bisection.cpp.


Function Documentation

double bisection ( double(*)(double x, double Alpha)  f,
double  Alpha,
double  x0,
double  x1,
double  eps 
)

Looking for roots of function f for given Alpha on the interval x0-x1.

Parameters:
(*f),- Function for root finding. Only x-roots are finded, Alpha is constant
Alpha,- constant for the f function
x0 = -1E+7, - left boundary of the interval
x1 = 1E+7, - right boundary of the interval
eps = max_error); - max error

Definition at line 22 of file bisection.cpp.

Referenced by Dxx_ba().

Here is the caller graph for this function:


Generated on Thu May 27 11:53:19 2010 for VERB_CODE_2.0 by  doxygen 1.5.9