mnspy 0.9.10__tar.gz → 0.9.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mnspy-0.9.10 → mnspy-0.9.12}/PKG-INFO +1 -1
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/integral.py +2 -1
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/romberg.py +4 -2
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/simpson_1_3.py +2 -1
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/simpson_3_8.py +2 -1
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/trapezoidal.py +2 -1
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/trapezoidal_desigual.py +2 -1
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy.egg-info/PKG-INFO +1 -1
- {mnspy-0.9.10 → mnspy-0.9.12}/setup.py +1 -1
- {mnspy-0.9.10 → mnspy-0.9.12}/LICENSE +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/README.md +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/derivada/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/derivada/derivada.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/derivada/derivada_discreta.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/derivada/richardson.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/cramer.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/descomposicion_LU.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/descomposicion_cholesky.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/ecuaciones_algebraicas_lineales.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/gauss.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/gauss_jordan.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/gauss_sediel.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/tridiagonal.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_ordinarias/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_ordinarias/ecuaciones_diferenciales_ordinarias.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_ordinarias/euler.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_ordinarias/heun.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_ordinarias/punto_medio.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_ordinarias/runge_kutta.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/ecuaciones_diferenciales_parciales.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/liebmann.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mdf/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mdf/mdf.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/armadura.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/barra.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/ensamble.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/marco.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/mef.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/resorte.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/triangular_cst.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/viga.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mvf/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mvf/mvf.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mvf/volumen_finito.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/__init__.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/cuadratura_adaptativa.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/gauss_legendre.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/integrales/trapezoidal_desigual_acumulado.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/interpolaci/303/263n/__init__.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/interpolaci/303/263n/inter_Lagrange.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/interpolaci/303/263n/inter_Newton.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/interpolaci/303/263n/inter_spline_cubica.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/interpolaci/303/263n/inter_spline_lineal.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/interpolaci/303/263n/interpolacion.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/__init__.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/bisecci/303/263n.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/brent.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/falsa_posicion.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/muller.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/newton_raphson.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/punto_fijo.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/raices.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/secante.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/secante_modificada.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ra/303/255ces/wegstein.py" +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy/utilidades.py +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy.egg-info/SOURCES.txt +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy.egg-info/dependency_links.txt +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy.egg-info/requires.txt +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/mnspy.egg-info/top_level.txt +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/pyproject.toml +0 -0
- {mnspy-0.9.10 → mnspy-0.9.12}/setup.cfg +0 -0
|
@@ -66,7 +66,8 @@ class Integral:
|
|
|
66
66
|
Modifica la figura actual de Matplotlib.
|
|
67
67
|
"""
|
|
68
68
|
if self._tipo == 'discreto':
|
|
69
|
-
plt.
|
|
69
|
+
plt.scatter(self._x, self._y, marker='o', c='b', lw=1, label='Puntos')
|
|
70
|
+
#plt.plot(self._x, self._y, 'o--', c='b', lw=1, label='Puntos')
|
|
70
71
|
elif self._tipo == 'función':
|
|
71
72
|
x = np.linspace(self._a, self._b)
|
|
72
73
|
y = self._f(x)
|
|
@@ -97,8 +97,10 @@ class Romberg(Trapezoidal):
|
|
|
97
97
|
x = np.linspace(self._a, self._b, (2 ** i) + 1)
|
|
98
98
|
y = self._f(x)
|
|
99
99
|
ind_color = 'C' + str(i)
|
|
100
|
-
plt.
|
|
101
|
-
plt.fill_between(x, y, color=ind_color, alpha=0.3, label='
|
|
100
|
+
plt.stem(x, y, linefmt='C0--', markerfmt='C0o', basefmt='C0-')
|
|
101
|
+
plt.fill_between(x, y, color=ind_color, alpha=0.3, label='Regla de Romberg' + ' n=' + str((2 ** i)))
|
|
102
|
+
# plt.plot(x, y, 'o--', color=ind_color, lw=1)
|
|
103
|
+
# plt.fill_between(x, y, color=ind_color, alpha=0.3, label='Trapecio n=' + str((2 ** i)))
|
|
102
104
|
|
|
103
105
|
def graficar(self):
|
|
104
106
|
"""Genera una gráfica del proceso de integración de Romberg.
|
|
@@ -95,7 +95,8 @@ class Simpson13(Integral):
|
|
|
95
95
|
# Se usa una interpolación cuadrática para visualizar las parábolas
|
|
96
96
|
spl = interp1d(x, y, kind='quadratic')
|
|
97
97
|
y_smooth = spl(xvals)
|
|
98
|
-
plt.
|
|
98
|
+
plt.stem(x, y, linefmt='C2--', markerfmt='C0o', basefmt='C2-')
|
|
99
|
+
# plt.plot(x, y, 'o--', color='C2', lw=1)
|
|
99
100
|
plt.fill_between(xvals, y_smooth, color='green', alpha=0.3, label='Regla Simpson 1/3')
|
|
100
101
|
plt.title(r'$\int{f(x)}\approx ' + str(self.integral) + '$')
|
|
101
102
|
self._graficar_datos()
|
|
@@ -96,7 +96,8 @@ class Simpson38(Integral):
|
|
|
96
96
|
# Se usa una interpolación cúbica para visualizar las curvas
|
|
97
97
|
spl = interp1d(x, y, kind='cubic')
|
|
98
98
|
y_smooth = spl(xvals)
|
|
99
|
-
plt.
|
|
99
|
+
plt.stem(x, y, linefmt='C2--', markerfmt='C0o', basefmt='C2-')
|
|
100
|
+
# plt.plot(x, y, 'o--', color='C2', lw=1)
|
|
100
101
|
plt.fill_between(xvals, y_smooth, color='green', alpha=0.3, label='Regla Simpson 3/8')
|
|
101
102
|
plt.title(r'$\int{f(x)}\approx ' + str(self.integral) + '$')
|
|
102
103
|
self._graficar_datos()
|
|
@@ -80,7 +80,8 @@ class Trapezoidal(Integral):
|
|
|
80
80
|
"""
|
|
81
81
|
x = np.linspace(self._a, self._b, self._n + 1)
|
|
82
82
|
y = self._f(x)
|
|
83
|
-
plt.
|
|
83
|
+
plt.stem(x, y, linefmt='C2--', markerfmt='C0o', basefmt='C2-')
|
|
84
|
+
# plt.plot(x, y, 'o--', color='C2', lw=1)
|
|
84
85
|
plt.fill_between(x, y, color='green', alpha=0.3, label='Regla del Trapecio')
|
|
85
86
|
plt.title(r'$\int{f(x)}\approx ' + str(self.integral) + '$')
|
|
86
87
|
self._graficar_datos()
|
|
@@ -74,7 +74,8 @@ class TrapezoidalDesigual(Integral):
|
|
|
74
74
|
None
|
|
75
75
|
Muestra una gráfica de Matplotlib.
|
|
76
76
|
"""
|
|
77
|
-
plt.
|
|
77
|
+
plt.stem(self._x, self._y, linefmt='C2--', markerfmt='C0o', basefmt='C2-')
|
|
78
|
+
# plt.plot(self._x, self._y, 'o--', color='C2', lw=1)
|
|
78
79
|
plt.fill_between(self._x, self._y, color='green', alpha=0.3, label='Regla del Trapecio Desigual')
|
|
79
80
|
plt.title(r'$\int{f(x)}\approx ' + str(self.integral) + '$')
|
|
80
81
|
self._graficar_datos()
|
|
@@ -2,7 +2,7 @@ from setuptools import setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='mnspy',
|
|
5
|
-
version='0.9.
|
|
5
|
+
version='0.9.12',
|
|
6
6
|
packages=['mnspy', 'mnspy.raíces', 'mnspy.derivada', 'mnspy.integrales', 'mnspy.interpolación',
|
|
7
7
|
'mnspy.ecuaciones_algebraicas_lineales', 'mnspy.ecuaciones_diferenciales_ordinarias',
|
|
8
8
|
'mnspy.ecuaciones_diferenciales_parciales', 'mnspy.ecuaciones_diferenciales_parciales.mdf',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_algebraicas_lineales/descomposicion_cholesky.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mef/triangular_cst.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mnspy-0.9.10 → mnspy-0.9.12}/mnspy/ecuaciones_diferenciales_parciales/mvf/volumen_finito.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|