bisection.hpp
Go to the documentation of this file.
1 
6 #ifndef BISECTION_HPP
7 #define BISECTION_HPP 1
8 
9 #include "func_1_var.hpp"
10 
17 double find_upper_bracket(Func1Var const& f,
18  double xl);
19 
27 double bisection(Func1Var const& f,
28  double xl,
29  double xr,
30  double tol = 1e-6);
31 
32 #endif // BISECTION_HPP
double find_upper_bracket(Func1Var const &f, double xl)
Finds an upper limit to an equation.
Definition: bisection.cpp:13
Class that represents a mathematical function of a single variable.
double bisection(Func1Var const &f, double xl, double xr, double tol=1e-6)
Solves a monotonous transcendental equation using the bisection method.
Definition: bisection.cpp:34
Scalar function of a single variable.
Definition: func_1_var.hpp:9