Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This repo includes the method to solve functions/equations and determine the root using the Numerical Newton-Raphson method algorithm.

License

Notifications You must be signed in to change notification settings

adisen99/NewtonRaphson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewtonRaphson

This repo includes the method to solve functions/equations and determine the root using the Numerical Newton-Raphson method algorithm.


Included files

There are in total 2 files in the repository one titled MATLAB and one titled Python. So you can use either syntax and program/language to numerically determine the roots of an equation/function using the Newton-Raphson Method or algorithm.

MATLAB methods

The MATLAB file contains two methods. Both follow the same algorithm of Newton-Raphson, however the Method 2 has been written for those who don't have access to the Math Tool box on MATLAB or have an older/obsolete MATLAB version that is not connected to the internet, or for those who are using a questionable version of MATLAB ;) The Method 2 uses a user defined function as a separate matlab file and the user herself/himself has to define the derivative of the function as well as a separate matlab file.

To access the files you can either Download the zip file or use the following command from your terminal

git clone https://github.com/adisen99/NewtonRaphson.git

then

cd NewtonRaphson

For the python file -

cd Python

and

python3 Newton_Raphson.py

But, For the MATLAB files

cd Matlab/Method1 or cd Matlab/Mehthod2

And then open the respective files in MATLAB.

Each directory also contains a separate README.md file that contains more information for that particular syntax/method.

Happy Coding


About

This repo includes the method to solve functions/equations and determine the root using the Numerical Newton-Raphson method algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published