Skip to content

Newton-Raphson method

iks005_newtonRaphson.cpp shows a basic example of the Newton-Raphson method to solve a non-linear set of equations. A function which shows the algorithm explicitly is provided and another function which is implemented in Ikarus is demonstrated. The function which depicts the Ikarus implementation uses a non-linear operator to perform the Newton-Raphson iterations. A logger can also be subscribed to in order to observe the residual norms, for instance.