VERB_code_2.3
bisection.h
Go to the documentation of this file.
1 
9 #ifndef BISECTION_H
10 #define BISECTION_H
11 
13 #define max_error 1E-15
14 
23 double bisection (
24  double (*f)(double x, double Alpha),
25  double Alpha,
26  double x0 = -1E+7,
27  double x1 = 1E+7,
28  double eps = max_error);
29 
30 #endif
double bisection(double(*f)(double x, double Alpha), double Alpha, double x0=-1E+7, double x1=1E+7, double eps=max_error)
Looking for roots of function f for given Alpha on the interval x0-x1.
Definition: bisection.cpp:22
#define max_error
define max_error maximum error after calculation
Definition: bisection.h:13