mnspy 0.9.22__py3-none-any.whl → 0.9.24__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.
@@ -265,6 +265,9 @@ class Raices:
265
265
  ``True`` si la iteración debe terminar, ``False`` en caso contrario.
266
266
  """
267
267
  lon = len(self._tabla['x'])
268
+ if self._f(self.x) == 0.0:
269
+ self._converge = True
270
+ return True
268
271
  if lon >= self._max_iter:
269
272
  self._converge = False
270
273
  return True
@@ -280,15 +283,19 @@ class Raices:
280
283
  else:
281
284
  return False
282
285
  elif self._error_tolerancia:
283
- if self._rango == (None, None):
284
- print('El tipo de error ''t'' solo aplica a los métodos cerrados')
285
- return False
286
- else:
287
- if abs(self._tabla['x_max'][-1]-self._tabla['x_min'][-1])/2.0 < self._tol:
288
- self._converge = True
289
- return True
290
- else:
286
+ lon = len(self._tabla['x'])
287
+ if lon > 1:
288
+ if self._rango == (None, None):
289
+ print('El tipo de error ''t'' solo aplica a los métodos cerrados')
291
290
  return False
291
+ else:
292
+ if abs(self._tabla['x_max'][-1]-self._tabla['x_min'][-1])/2.0 < self._tol:
293
+ self._converge = True
294
+ return True
295
+ else:
296
+ return False
297
+ else:
298
+ return False
292
299
  else:
293
300
  lon = len(self._tabla['x'])
294
301
  if lon > 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mnspy
3
- Version: 0.9.22
3
+ Version: 0.9.24
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
@@ -59,12 +59,12 @@ mnspy/raíces/falsa_posicion.py,sha256=ZGEf1G_SQpBcJbziZ30LTIADR9U_N3YLTobPlE_Qw
59
59
  mnspy/raíces/muller.py,sha256=y0XGJ1HCUnXbm5cHvdxBaH3o3ceRB2PBxVJogGAEkW0,5880
60
60
  mnspy/raíces/newton_raphson.py,sha256=PEnAv6IDqyKIZ9v9htjCsMhfxgjIyuHA1TauhJxxvrk,6425
61
61
  mnspy/raíces/punto_fijo.py,sha256=1bv4dPNo04GGpAdrJN3cqTShaqySQzy9GCti5V__aso,4628
62
- mnspy/raíces/raices.py,sha256=EpxP93x-G8f9gVNloEuQx5a8o8xpzk5ioGtrguYzLoQ,18656
62
+ mnspy/raíces/raices.py,sha256=P1AKJiZ-PbS28gst6dxk6NgGZfT_YgtYFFyIGgRR950,18896
63
63
  mnspy/raíces/secante.py,sha256=0SQt-og5W3yO_7QEF4AZt2IEp1G-b9HA3wbfyWHNjSo,5075
64
64
  mnspy/raíces/secante_modificada.py,sha256=vUi54dGSpGRzZKqbr3LWNI3bmqHyAoXwnVkPdyGbHEQ,5099
65
65
  mnspy/raíces/wegstein.py,sha256=PPP66unFOZ0HpHQLRBzQnnBwRCmlZENelonI4I5fRaM,5390
66
- mnspy-0.9.22.dist-info/licenses/LICENSE,sha256=wd5I6QXFrp_ipRe4KbPQuhaab3abbCGIW48aOnUQxsg,1071
67
- mnspy-0.9.22.dist-info/METADATA,sha256=h_ER7B1erL4XvyTxT0pxoU0I8kveE0KQMBltHHFFZyg,4641
68
- mnspy-0.9.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
- mnspy-0.9.22.dist-info/top_level.txt,sha256=fbooZdZwS41I8vFuAXnn5qL4_mfc1aPt_DM60ZpvtKE,6
70
- mnspy-0.9.22.dist-info/RECORD,,
66
+ mnspy-0.9.24.dist-info/licenses/LICENSE,sha256=wd5I6QXFrp_ipRe4KbPQuhaab3abbCGIW48aOnUQxsg,1071
67
+ mnspy-0.9.24.dist-info/METADATA,sha256=W7GzMMPSey0OvHFES5_aUs7gtcuBN80AUamCzQmbtH8,4641
68
+ mnspy-0.9.24.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
69
+ mnspy-0.9.24.dist-info/top_level.txt,sha256=fbooZdZwS41I8vFuAXnn5qL4_mfc1aPt_DM60ZpvtKE,6
70
+ mnspy-0.9.24.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5