This repo includes the method to solve functions/equations and determine the root using the Numerical Newton-Raphson method algorithm.
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.
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.