#include <Newton.hpp>
Inherits nc::roots::Iteration.
Newton root finding method
◆ Newton() [1/2]
Constructor
- Parameters
-
epsilon | the epsilon value |
f | the function |
fPrime | the derivative of the function |
◆ Newton() [2/2]
Constructor
- Parameters
-
epsilon | the epsilon value |
maxNumIterations | the maximum number of iterations to perform |
f | the function |
fPrime | the derivative of the function |
◆ ~Newton()
nc::roots::Newton::~Newton |
( |
| ) |
|
|
overridedefaultnoexcept |
◆ incrementNumberOfIterations()
void nc::roots::Iteration::incrementNumberOfIterations |
( |
| ) |
|
|
inlineprotectedinherited |
Incraments the number of iterations
◆ numIterations()
uint32 nc::roots::Iteration::numIterations |
( |
| ) |
const |
|
inlinenoexceptinherited |
Returns the number of iterations
- Returns
- : number of iterations
◆ resetNumberOfIterations()
void nc::roots::Iteration::resetNumberOfIterations |
( |
| ) |
|
|
inlineprotectednoexceptinherited |
Resets the number of iterations
◆ solve()
Solves for the root in the range [a, b]
- Parameters
-
- Returns
- root nearest the starting point
◆ epsilon_
◆ maxNumIterations_
uint32 nc::roots::Iteration::maxNumIterations_ { 1000 } |
|
protectedinherited |
◆ numIterations_
uint32 nc::roots::Iteration::numIterations_ { 0 } |
|
protectedinherited |
The documentation for this class was generated from the following file: