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.
- Host: GitHub
- URL: https://github.com/adisen99/newtonraphson
- Owner: adisen99
- License: mit
- Created: 2020-03-17T14:26:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-18T14:36:28.000Z (about 6 years ago)
- Last Synced: 2025-05-19T17:15:33.711Z (about 1 year ago)
- Topics: equations, matlab, newton-raphson, numerical-methods, python3, roots
- Language: Python
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
_______________________________________________________________________________________________________________________________