Solves a functions root using the Newton-Raphson method. It requires three parameters, the function, the x₀ value, and the number of iterations.
This is an application that allows you to input aa function, x₀ value and number of iterations into a UI and see it graphed and solved.
Run interactive__graph.py to see the graphical visualisation of the method
This shows the real time lines being drawn when solving using the Newton-Raphson method
Run newton_raphson_graph.py to see the graphical visualisation of the method
To use the function, start by importing the function and sympy:
from sympy import *
from newton_raphson import nr
Then setup your x
symbol:
x = Symbol('x')
Finally call the Newton-Raphson function
nr((x**3 + 2*x - 2)), 1, 3)
See newton_raphson.py for the base function