Solution of transcendental equations with a single variable using the bisection method. More...
#include "func_1_var.hpp"

Go to the source code of this file.
Functions | |
| double | find_upper_bracket (Func1Var const &f, double xl) |
| Finds an upper limit to an equation. More... | |
| double | bisection (Func1Var const &f, double xl, double xr, double tol=1e-6) |
| Solves a monotonous transcendental equation using the bisection method. More... | |
Solution of transcendental equations with a single variable using the bisection method.
Definition in file bisection.hpp.
| double bisection | ( | Func1Var const & | f, |
| double | xl, | ||
| double | xr, | ||
| double | tol = 1e-6 |
||
| ) |
Solves a monotonous transcendental equation using the bisection method.
| f | One dimensional function |
| xl | Left bound |
| xr | Right bound |
| tol | Tolerance |
Definition at line 34 of file bisection.cpp.

| double find_upper_bracket | ( | Func1Var const & | f, |
| double | xl | ||
| ) |
Finds an upper limit to an equation.
Doubles the value until the equation changes sign
| f | One dimensional function |
| xl | Lower limit |
Definition at line 13 of file bisection.cpp.

1.8.13