VERB_code_2.2  2
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
bisection.h File Reference

Go to the source code of this file.

Macros

#define max_error   1E-15
 define max_error maximum error after calculation More...
 

Functions

double bisection (double(*f)(double x, double Alpha), double Alpha, double x0=-1E+7, double x1=1E+7, double eps=1E-15)
 Looking for roots of function f for given Alpha on the interval x0-x1. More...
 

Detailed Description

Bisection method of root finding header

Author
Unknown (Numeric recepies?)

Definition in file bisection.h.

Macro Definition Documentation

#define max_error   1E-15

define max_error maximum error after calculation

Definition at line 13 of file bisection.h.

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.