filmov
tv
Solving Non Linear Equations - in Python

Показать описание
Numerical Methods in Python Series - Solving Non Linear Equations
this tutorial will show you how to solve non linear equation in Python.
the function is
f(x) = e^x - 5x^2
with interval between
a = -0.5 to b = 1.4
and step between each x
h = 0.1
steps:
1. watch previous video:
Numerical Methods in Python Series - Calculating Taylor Series for Exponential Function
2. create a code that compute the function with some interval of x (a to b) with step h = 0.1. if the sign is changed within the interval, then there must be at least one solution. choosing smaller h will give higher probability to find the interval with a single solution
3. the result show that the interval with solution is
[-0.40, -0.30] and [0.60, 0.70]
we will learn more about solving non linear equations in the next tutorial ;)
you can get the code from github:
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
this tutorial will show you how to solve non linear equation in Python.
the function is
f(x) = e^x - 5x^2
with interval between
a = -0.5 to b = 1.4
and step between each x
h = 0.1
steps:
1. watch previous video:
Numerical Methods in Python Series - Calculating Taylor Series for Exponential Function
2. create a code that compute the function with some interval of x (a to b) with step h = 0.1. if the sign is changed within the interval, then there must be at least one solution. choosing smaller h will give higher probability to find the interval with a single solution
3. the result show that the interval with solution is
[-0.40, -0.30] and [0.60, 0.70]
we will learn more about solving non linear equations in the next tutorial ;)
you can get the code from github:
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