Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
MathRoot_Newton.hxx File Reference
#include <MathUtils_Types.hxx>
#include <MathUtils_Config.hxx>
#include <MathUtils_Core.hxx>
#include <MathUtils_Convergence.hxx>
#include <cmath>

Namespaces

namespace  MathRoot
 Root finding algorithms for scalar functions.
 

Functions

template<typename Function >
MathUtils::ScalarResult MathRoot::Newton (Function &theFunc, double theGuess, const MathUtils::Config &theConfig=MathUtils::Config())
 Newton-Raphson root finding algorithm. Finds x such that f(x) = 0 using Newton's method with derivative.
 
template<typename Function >
MathUtils::ScalarResult MathRoot::NewtonBounded (Function &theFunc, double theGuess, double theLower, double theUpper, const MathUtils::Config &theConfig=MathUtils::Config())
 Newton-Raphson with bounds checking. Falls back to bisection step if Newton step goes outside bounds. More robust than pure Newton for ill-conditioned problems.