#include "../utils.h"
#include "gaussSeidel.h"
#include <functional>
Go to the source code of this file.
Implements newton-method to find roots
Requires:
◆ Jacobian
representation of jacobian
◆ LinearEquation
representation of linear equation
◆ newton()
newton method to find roots of given function f
- Parameters
-
f | linear equation |
Df | derivative of f |
x0 | start value |
TOL | desired tolerance of the method |
maxIter | maximum iterations for the method |
- Returns
- approximated values paired with required number iterations for given tolerance
- Examples
- numerics/lin_alg/TestNewton.cpp.