Numerical Methods in Python Series - Secant Method

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

this tutorial will show you how to solve non linear equation in Python using Secant Method

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

Numerical Methods in Python Series - Newton-Raphson Method

Numerical Methods in Python Series - Fixed Iteration Point Method

2. the method


3. the function is:

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

with

x = 4
x_before = 0
x0 = 2
x1 = 4

and

epsilon = 0.00001

the result shows that the solution is convergence to 0.605267

4. try for

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

with

x =4
x_before = 0
x0 = 2
x1 = 3

with
epsilon = 0.00001

the result shows that the solution is convergence to 2.690647

5. try for

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

with

x = 4
x_before = 0
x0 = 1
x1 = 2

with
epsilon = 0.00001

the result shows that the solution is convergence to 1.521380

we will compare the results of each methods in the next tutorial ;)

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

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