Check out the oficial package site: https://pypi.org/project/marlonpy/
Package developed for Universidad del Norte, focused on the Engineering Division. Supervised by professors Augusto Salazar and Marlon Piñeres.
This repository contains implementations of numerical methods in Python. The included methods are useful for solving mathematical problems using computational techniques. They are used to build the marlonpy Python package, which aims to help Systems Engineering students at Universidad del Norte, especially in their Computational Solutions to Engineering Problems course.
This repository currently includes implementations of the following methods:
- Number Conversions: Binary to Decimal, IEEE 754.
- Root-Finding Methods: Includes Bisection, Fixed Point, Newton-Raphson, Regula Falsi, and Secant methods.
- Linear Regression: Techniques for modeling relationships between variables.
- Numerical Differentiation: Methods for approximating derivatives.
- Numerical Integration: Techniques such as the Trapezoidal Rule, Gauss-Legendre, and Simpson's rule.
- Differential Equation Solvers: Includes methods like Runge-Kutta.
The repository is structured as follows:
-
Conversions:
/ConversionBinary.py
/ConversionIEEE754.py
-
Differential Equations:
/RungeKutta4th.py
-
Linear Regression:
/LinearRegression.py
-
Numerical Derivation:
/Derivative.py
-
Numerical Integration:
/GaussLegendre.py
/Simpson38.py
/TrapezoidalRule.py
-
Roots:
/BisectionMethod.py
/FixedPoint.py
/NewtonRaphson.py
/RegulaFalsi.py
/SecantMethod.py
-
System Equations:
/Crout.py
/DDM.py
/Doolittle.py
/GaussSeidel.py
/Jacobi.py
-
Taylor Series:
/TaylorSeries.py
Each directory contains specific implementations of the mentioned methods.
- NumPy: the fundamental package for scientific computing in Python.
- SymPy: a Python library for symbolic mathematics.
- tabulate: Pretty-print tabular data in Python.
Latest version of Python 3.12.3
pip install marlonpy
If the command pip
does not work in your computer, please try:
py -m pip install marlonpy
Now, you can use the library.
import marlonpy as mp
- IEEE 754 Conversion:
>>> from marlonpy.Conversions import ConversionIeee
>>> num = '01000010101010100100000000000000'
>>> print('El equivalente de num en decimal es', ConversionIeee.ieee754(num))
El equivalente de num en decimal es 85.125
- Regula Falsi:
>>> from marlonpy.Roots import RegulaFalsi
>>> import sympy as sp
>>> x = sp.Symbol('x')
>>> f = sp.sec(sp.exp(sp.sqrt(x + 1))) - 3
>>> a = 3
>>> b = 3.1
>>> print('La raíz aproximada es', RegulaFalsi.regula_falsi(f, a, b))
La raíz aproximada es 3.06741643635292
- Lena Carolina Castillo De la Espriella:
LCCastillo03
- Gabriela De Jesús Bula Pavia:
paviag
- Edgar Andrés Garcia Davila:
EdgarGXI
Thanks for your interest in contributing to this project. Get started with our Contributing Guide.
This repository is licensed under the MIT License.