Numerical Methods in Python Series - Newton Raphson Method

preview_player
Показать описание
Numerical Methods in Python Series - Newton-Raphson Method

this tutorial will show you how to solve non linear equation in Python using Newton-Raphson

the function is

f(x) = e^x - 5x^2

with initial guess

x = 1

and

epsilon = 0.00001

steps:
1. watch previous video:
Numerical Methods in Python Series - Calculating Taylor Series for Exponential Function

Numerical Methods in Python Series - Solving Non Linear Equations

Numerical Methods in Python Series - Bisection Method

Numerical Methods in Python Series - Regula Falsi Method

2. the method



3. the result shows that the solution is convergence to 0.605267

4. try for

f(x) = x^3 - 2x^2 -5

with initial guess

x = 4

with
epsilon = 0.00001

5. the result shows that the solution is convergence to 2.690647

6. try for

f(x) = x^3 - x - 2

with initial guess

x = 2

with
epsilon = 0.00001

7. the result shows that the solution is convergence to 1.521379

we will learn more about solving non linear equations with Fixed Iteration Point method in the next tutorial ;)

and at the end we will compare the results of each methods ;)

you can get the code from GitHub:

References:

thanks for watching, don’t forget to subscribe, activate the notification bell, like this video and also share it to support this channel to be able to continuously creates useful tutorials :)

leave us some comments if there is any questions and let us know what you think :)

Intro and Outro created by ProCodeCG Kids: Islamey Fawwaz Alfattan

Рекомендации по теме