Skip to content

wise-saint/Newton_Raphson_Method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Copyright (c) <2021>, All rights reserved.

This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.

Newton_Raphson_Method

An iterative method to find the root of mathematical functions

This method is based on the first degree equation.

We draw a tangent line to the graph of f(x) at the point x = xn.
This line has slope f′(xn) and goes through the point (xn,f(xn)).
Therefore it has the equation y = f′(xn)(x−xn) + f(xn).
Now, we find the root of this tangent line by setting y = 0 and x = xn+1 for our new approximation.
Solving this equation gives us our new approximation, which is xn + 1 = xn − f′(xn)/f(xn).

Here is a picture to demonstrate what Newton's method actually does: image

Releases

No releases published

Packages

No packages published

Languages