- Root Finder is a tool for finding roots of functions and ploting using numerical analysis algorithms with simple GUI.
- Written in Python 3.
- Uses Pyqt5 for GUI interfaces.
- Bracketing-Method
- Bisection
- False-position
- Open Method
- Newton-Raphson
- Secant
- Fixed-Point
- Bracketing Method - Bisection/False-position
- 2 steps:
- Initialize
bisectoin = Bisection(equation, a, b, epsilon, max-itterations)
- Find the root
data, time = bisection.find_root(flag=false)
whereflag
is a boolean value to select from [Bisection and False-Position ]. data
is a pandas dataframe with columnsiteration
,x
,X_root
,F(X_root)
,error
- Initialize
- 2 steps:
- Open Method - Newton-Raphson
- 3 steps:
- Initialize
open = OpenMethod(equation, epsilon, max-itterations)
- Find the root
data, time = open.find_root_newton(initial guess)
data
is a pandas dataframe with columnsiteration
,X[i]
,X[i+1]
,F(X[i])
,F'(X[i])
,error
- Initialize
- 3 steps:
- Open Method - Secant
- 3 steps:
- Initialize
open = OpenMethod(equation, epsilon, max-itterations)
- Find the root
data, time = open.find_root_secant(initial guess, secand guess)
data
is a pandas dataframe with columnsiteration
,X[i-1]
,X[i]
,F(X[i-1])
,F(X[i])
,F(X[i+])
,error
- Initialize
- 3 steps:
- Open Method - Fixed-Point
- 3 steps:
- Initialize
open = OpenMethod(equation, epsilon, max-itterations)
- Find the root
data, time = open.find_root_fixed_point(initial guess, g_x)
whereg_x
is an equation that returns the next guess. data
is a pandas dataframe with columnsiteration
,X[i]
,X[i+1]
,error
- Initialize
- 3 steps:
- Created 4 widgets:
BracketingUI
NewtonUI
SecantUI
FixedPointUI
RootFinderUI
- Main window to select on of the above widgets.