Skip to main content

HA23039UNO

Una librería Python para resolver sistemas de ecuaciones lineales y no lineales mediante métodos numéricos.

Instalación

pip install HA23039UNO

Características

Esta librería implementa varios métodos para resolver sistemas de ecuaciones:

Sistemas lineales:

  • Eliminación de Gauss: Resuelve un sistema de ecuaciones lineales mediante eliminación gaussiana.
  • Gauss-Jordan: Resuelve un sistema de ecuaciones lineales mediante el método de Gauss-Jordan.
  • Regla de Cramer: Resuelve un sistema de ecuaciones lineales utilizando determinantes.
  • Descomposición LU: Resuelve un sistema de ecuaciones lineales mediante la descomposición LU.
  • Método iterativo de Jacobi: Resuelve un sistema de ecuaciones lineales mediante iteraciones sucesivas.
  • Método iterativo de Gauss-Seidel: Resuelve un sistema de ecuaciones lineales mediante iteraciones sucesivas mejoradas.

Ecuaciones no lineales:

  • Método de bisección: Encuentra una raíz de una ecuación no lineal dentro de un intervalo.

Ejemplos de uso

Sistemas lineales con Eliminación de Gauss

from HA23039UNO import gauss_elimination

# Definir un sistema de ecuaciones lineales
A = [
    [2, 6, 1],
    [1, 2, -1],
    [5, 7, -4]
]
b = [7, -1, 9]

# Resolver usando eliminación de Gauss
x = gauss_elimination(A, b)
print("Solución:", x)

Sistemas lineales con Gauss-Jordan

from HA23039UNO import gauss_jordan

# Definir un sistema de ecuaciones lineales
A = [
    [0.30, 0.20, -0.30],
    [-0.30, 0.10, 0.10],
    [-1, 1, 0]
]
b = [0, 0, 100]

# Resolver usando Gauss-Jordan
x = gauss_jordan(A, b)
print("Solución:", x)

Sistemas lineales con Cramer

from HA23039UNO import cramer

# Definir un sistema de ecuaciones lineales
A = [
    [1, 1, 1],
    [0.08, 0.05, 0.1],
    [0, 1, -2]
]
b = [50000, 3750, 0]

# Resolver usando la regla de Cramer
x = cramer(A, b)
print("Solución:", x)

Sistemas lineales con Descomposición LU

from HA23039UNO import lu_decomposition

# Definir un sistema de ecuaciones lineales
A = [
    [4, -1, 0],
    [-1, 4, -1],
    [0, -1, 4]
]
b = [15, 10, 10]

# Resolver usando descomposición LU
x = lu_decomposition(A, b)
print("Solución:", x)

Sistemas lineales con Jacobi

from HA23039UNO import jacobi

# Definir un sistema de ecuaciones lineales
A = [
    [10, -1, 2, 0],
    [-1, 11, -1, 3],
    [2, -1, 10, -1],
    [0, 3, -1, 8]
]
b = [6, 25, -11, 15]

# Resolver usando el método de Jacobi
x, iteraciones = jacobi(A, b)
print(f"Solución (en {iteraciones} iteraciones):", x)

Sistemas lineales con Gauss-Seidel

from HA23039UNO import gauss_seidel

# Definir un sistema de ecuaciones lineales
A = [
    [4, -1, 0],
    [-1, 4, -1],
    [0, -1, 4]
]
b = [15, 10, 10]

# Resolver usando el método de Gauss-Seidel
x, iteraciones = gauss_seidel(A, b)
print(f"Solución (en {iteraciones} iteraciones):", x)

Ecuaciones no lineales con Bisección

from HA23039UNO import bisection

# Definir una función no lineal
def f(x):
    return x**4 + 0.5*(x**3) - 2*x - 5

# Resolver usando el método de bisección
raiz, iteraciones = bisection(f, 1, 3)
print(f"Raíz aproximada: {raiz} (encontrada en {iteraciones} iteraciones)")

Licencia

Este proyecto está licenciado bajo la Licencia MIT - vea el archivo LICENSE para más detalles.

Metadata

Release files for HA23039UNO 0.1.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 HA23039UNO 0.1.0
File Size Uploaded Provenance
HA23039UNO-0.1.0.tar.gz 6.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 13.2 kB

Release files / HA23039UNO-0.1.0.tar.gz

Download URL HA23039UNO-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0b866c4581066d4b0f4e9475ae4d5eb0d524f4b20cc96d52f11c3ecd180b4923
BLAKE2b-256 checksum
How to use checksums
0bb4ead9ed661e1dfa49770fdd7fc99fdb4bd5a9814c0b4ea3c6117576844b13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / HA23039UNO-0.1.0-py3-none-any.whl

Download URL HA23039UNO-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a6529a3a4590a29743cfc3a18950f0f1b8f4b8ac6a56992b9c93217d6299e4e
BLAKE2b-256 checksum
How to use checksums
77ba4e6646a3622165b2f8fe5802c8e8af5ad4720c65e845346053122a10f2ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Security for HA23039UNO 0.1.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

0.1.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