mnspy 0.9.7__py3-none-any.whl → 0.9.8__py3-none-any.whl

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.
@@ -86,13 +86,14 @@ class Wegstein(Raices):
86
86
  -------
87
87
  None
88
88
  """
89
- # Bucle de iteración para evitar recursión profunda
90
- while not self._fin_iteracion():
91
- # Fórmula de Wegstein
92
- self.x = (self._x_1_i * self._f(self._x_0_i) - self._x_0_i * self._f(self._x_1_i)) / (
93
- self._x_1_i - self._x_0_i - self._f(self._x_1_i) + self._f(self._x_0_i))
94
- # Actualizar los puntos para la siguiente iteración
95
- self._x_0_i, self._x_1_i = self._x_1_i, self.x
89
+ self.x = (self._x_1_i * self._f(self._x_0_i) - self._x_0_i * self._f(self._x_1_i)) / (
90
+ self._x_1_i - self._x_0_i - self._f(self._x_1_i) + self._f(self._x_0_i))
91
+ self._x_0_i = self._x_1_i
92
+ self._x_1_i = self.x
93
+ if self._fin_iteracion():
94
+ return
95
+ else:
96
+ self._calcular()
96
97
 
97
98
  def graficar(self, mostrar_sol: bool = True, mostrar_iter: bool = True, mostrar_lin_iter: bool = True,
98
99
  n_puntos: int = 100):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mnspy
3
- Version: 0.9.7
3
+ Version: 0.9.8
4
4
  Summary: Paquete didáctico para métodos numéricos
5
5
  Home-page: https://github.com/EdwinSoft/mnspy
6
6
  Author: Edwin Córdoba
@@ -62,9 +62,9 @@ mnspy/raíces/punto_fijo.py,sha256=yGlx3PZ19s2ENtb515ytH1Vxw0Van_6-hyC2XRWLi4g,4
62
62
  mnspy/raíces/raices.py,sha256=lTjSOk84sg1VdlElmHaZSRen00zpt0jNrnFBx_SStnU,17510
63
63
  mnspy/raíces/secante.py,sha256=t8-NcN-Ki8BYrh3Cf3VUjaaRLxz6qV1v5i8johKBlZs,5220
64
64
  mnspy/raíces/secante_modificada.py,sha256=0bLgcG8K_O6Ras3vKBIQpUdDlB69tWKHbx_fE8-47SE,5105
65
- mnspy/raíces/wegstein.py,sha256=FGAyie7PeNWc1yx2CF7dZv7IjZJtVXrkwnYkpTIaVwM,5508
66
- mnspy-0.9.7.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
67
- mnspy-0.9.7.dist-info/METADATA,sha256=ox0-jhQ5o_EpUcYtEoGobHoifLNe2lKEHly8gxsPoCw,4414
68
- mnspy-0.9.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
- mnspy-0.9.7.dist-info/top_level.txt,sha256=fbooZdZwS41I8vFuAXnn5qL4_mfc1aPt_DM60ZpvtKE,6
70
- mnspy-0.9.7.dist-info/RECORD,,
65
+ mnspy/raíces/wegstein.py,sha256=23HQ6QuelMNo8S8W1fzha8ozbcy_NdsjK5XLMaH-m38,5397
66
+ mnspy-0.9.8.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
67
+ mnspy-0.9.8.dist-info/METADATA,sha256=VrGKXmbbFjoMYOHQx8WwmEUH_gVuwne_pwdpdt-Fivs,4414
68
+ mnspy-0.9.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
+ mnspy-0.9.8.dist-info/top_level.txt,sha256=fbooZdZwS41I8vFuAXnn5qL4_mfc1aPt_DM60ZpvtKE,6
70
+ mnspy-0.9.8.dist-info/RECORD,,
File without changes