An open API service indexing awesome lists of open source software.

https://github.com/adisen99/newtonraphson

This repo includes the method to solve functions/equations and determine the root using the Numerical Newton-Raphson method algorithm.
https://github.com/adisen99/newtonraphson

equations matlab newton-raphson numerical-methods python3 roots

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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
_______________________________________________________________________________________________________________________________