Skip to main content

Numerical Methods Repository

Package developed for Universidad del Norte, focused on the Engineering Division. Supervised by professors Augusto Salazar and Marlon Piñeres.

Check out the official repositor: https://github.com/LCCastillo03/NumericalMethods/tree/main

Team: NRC 2381

  • Lena Carolina Castillo De la Espriella
  • Gabriela De Jesús Bula Pavia
  • Edgar Andrés Garcia Davila

Table of Contents

Summary and Justification

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.

Repository Contents

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.

Repository Structure

The repository is structured as follows:

  1. Conversions:

    • /ConversionBinary.py
    • /ConversionIEEE754.py
  2. Differential Equations:

    • /RungeKutta4th.py
  3. Linear Regression:

    • /LinearRegression.py
  4. Numerical Derivation:

    • /Derivative.py
  5. Numerical Integration:

    • /GaussLegendre.py
    • /Simpson38.py
    • /TrapezoidalRule.py
  6. Roots:

    • /BisectionMethod.py
    • /FixedPoint.py
    • /NewtonRaphson.py
    • /RegulaFalsi.py
    • /SecantMethod.py
  7. System Equations:

    • /Crout.py
    • /DDM.py
    • /Doolittle.py
    • /GaussSeidel.py
    • /Jacobi.py
  8. Taylor Series:

    • /TaylorSeries.py

Each directory contains specific implementations of the mentioned methods.

Dependencies

  • NumPy: the fundamental package for scientific computing in Python.
  • SymPy: a Python library for symbolic mathematics.
  • tabulate: Pretty-print tabular data in Python.

Installation and Usage Instructions

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

Examples

  • 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

License

This repository is licensed under the MIT License.

Metadata

Release files for marlonpy 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marlonpy 1.2.0
File Size Uploaded Provenance Actions
marlonpy-1.2.0.tar.gz 13.6 kB Without provenance Details for marlonpy-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for marlonpy 1.2.0
File Interpreter ABI Platform Actions
marlonpy-1.2.0-py3-none-any.whl Python 3 none any Details for marlonpy-1.2.0-py3-none-any.whl

Total release size: 33.9 kB

Release files / marlonpy-1.2.0.tar.gz

Download URL marlonpy-1.2.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b1e3248005c7355e4bf56852ff6c3c8f3a09834a70783fa205e487bac86e4852
BLAKE2b-256 checksum
How to use checksums
e7442620d2afca0b11b8d59920cd93c46eafed488e72ce002393164d9d5956b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / marlonpy-1.2.0-py3-none-any.whl

Download URL marlonpy-1.2.0-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f60290ef0ed2ab52f16db1e8f0254bc6add823c08c1b103b74d1dcb32f4de61e
BLAKE2b-256 checksum
How to use checksums
c153ac0af21ebb7878b28aac5ef28919b7dce6eb7ab926750ee0c07ff0802ba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Security for marlonpy 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page