VERB_code_2.2
2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Pages
bisection.h
Go to the documentation of this file.
1
/**
2
* Bisection method of root finding header
3
*
4
* \file bisection.h
5
*
6
* \author Unknown (Numeric recepies?)
7
*/
8
9
#ifndef BISECTION_H
10
#define BISECTION_H
11
12
/// define max_error maximum error after calculation
13
#define max_error 1E-15
14
15
/**
16
* \brief Looking for roots of function f for given Alpha on the interval x0-x1
17
* \param (*f), - Function for root finding. Only x-roots are finded, Alpha is constant
18
* \param Alpha, - constant for the f function
19
* \param x0 = -1E+7, - left boundary of the interval
20
* \param x1 = 1E+7, - right boundary of the interval
21
* \param eps = max_error); - max error
22
*/
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
VariousFunctions
bisection.h
Generated on Sat Nov 16 2013 09:31:46 for VERB_code_2.2 by
1.8.4