https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Namespaces | Functions
BrentsMethod.h File Reference

Go to the source code of this file.

Namespaces

namespace  BrentsMethod
 Brent's method is used to find the root of a function f(x), i.e., find x such that f(x) = 0.
 

Functions

void BrentsMethod::bracket (std::function< Real(Real)> const &f, Real &x1, Real &x2)
 Function to bracket a root of a given function.
 
Real BrentsMethod::root (std::function< Real(Real)> const &f, Real x1, Real x2, Real tol=1.0e-12)
 Finds the root of a function using Brent's method.