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.
- mnspy/ra/303/255ces/raices.py +15 -8
- {mnspy-0.9.22.dist-info → mnspy-0.9.24.dist-info}/METADATA +1 -1
- {mnspy-0.9.22.dist-info → mnspy-0.9.24.dist-info}/RECORD +6 -6
- {mnspy-0.9.22.dist-info → mnspy-0.9.24.dist-info}/WHEEL +1 -1
- {mnspy-0.9.22.dist-info → mnspy-0.9.24.dist-info}/licenses/LICENSE +0 -0
- {mnspy-0.9.22.dist-info → mnspy-0.9.24.dist-info}/top_level.txt +0 -0
mnspy/ra/303/255ces/raices.py
CHANGED
|
@@ -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
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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:
|
|
@@ -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=
|
|
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.
|
|
67
|
-
mnspy-0.9.
|
|
68
|
-
mnspy-0.9.
|
|
69
|
-
mnspy-0.9.
|
|
70
|
-
mnspy-0.9.
|
|
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,,
|
|
File without changes
|
|
File without changes
|