Newton Raphsons metod
= GeoGebra
Excel
Kodexempel
x0 = 12 #En approximation av vad roten kommer att bli
function = lambda x: (x**2) - 1394 #Funktionen
derivative = lambda x: 2*x #Derivatan
x = x0 #Aktuelt x-värde
while True:
value = x - (function(x)/derivative(x))
print(value)
x = value
Länkar
- https://www.matteboken.se/lektioner/mattespecialisering/berakningsmatematik/newton-raphsons-metod
- https://sv.wikipedia.org/wiki/Newtons_metod
- https://brilliant.org/wiki/newton-raphson-method/
- https://pythonnumericalmethods.berkeley.edu/notebooks/chapter19.04-Newton-Raphson-Method.html
- https://towardsdatascience.com/develop-your-own-newton-raphson-algorithm-in-python-a20a5b68c7dd

