mnspy 0.9.21__py3-none-any.whl → 0.9.23__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.
@@ -112,6 +112,9 @@ class Armadura(Elemento):
112
112
  else:
113
113
  return self._obtener_valor_fuerza()
114
114
 
115
+ def get_fuerza(self):
116
+ return self._obtener_valor_fuerza()
117
+
115
118
  def esfuerzo(self):
116
119
  if es_notebook():
117
120
  indice = [r'$\sigma^{(' + self.nombre + r')}$']
@@ -120,6 +123,9 @@ class Armadura(Elemento):
120
123
  else:
121
124
  return self._obtener_valor_fuerza() / self._A
122
125
 
126
+ def get_esfuerzo(self):
127
+ return self._obtener_valor_fuerza() / self._A
128
+
123
129
  def mostrar_sistema(self, reducida: bool = False):
124
130
  vec_d = np.array(self._k.obtener_etiquetas_desplazamientos(reducida), dtype=object).reshape(-1,1)
125
131
  vec_f = np.array(self._obtener_etiquetas_fuerzas(reducida), dtype=object).reshape(-1,1)
@@ -280,15 +280,19 @@ class Raices:
280
280
  else:
281
281
  return False
282
282
  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:
283
+ lon = len(self._tabla['x'])
284
+ if lon > 1:
285
+ if self._rango == (None, None):
286
+ print('El tipo de error ''t'' solo aplica a los métodos cerrados')
291
287
  return False
288
+ else:
289
+ if abs(self._tabla['x_max'][-1]-self._tabla['x_min'][-1])/2.0 < self._tol:
290
+ self._converge = True
291
+ return True
292
+ else:
293
+ return False
294
+ else:
295
+ return False
292
296
  else:
293
297
  lon = len(self._tabla['x'])
294
298
  if lon > 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mnspy
3
- Version: 0.9.21
3
+ Version: 0.9.23
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
@@ -25,7 +25,7 @@ mnspy/ecuaciones_diferenciales_parciales/liebmann.py,sha256=AQSCursvDej9GW0k3i-3
25
25
  mnspy/ecuaciones_diferenciales_parciales/mdf/__init__.py,sha256=nniwx11bI8uz0J3tJ-iR1O2rf5hLZW7zWhVIQcB0mYA,298
26
26
  mnspy/ecuaciones_diferenciales_parciales/mdf/mdf.py,sha256=d3YFg-AvomZ37BATojkeAxgqIegFbO67vnY69DND9HE,5746
27
27
  mnspy/ecuaciones_diferenciales_parciales/mef/__init__.py,sha256=-ZqVb1Pn4CGcUKL5jNqAm_2PJrSBlghbQzRGLq6pOGw,1750
28
- mnspy/ecuaciones_diferenciales_parciales/mef/armadura.py,sha256=J0Og6NCSBLcwZCsb2_tzPdZAnUfLiSO-BZ82b86GC7Q,14761
28
+ mnspy/ecuaciones_diferenciales_parciales/mef/armadura.py,sha256=VNNnKPo9p-RupNSGYeIPaaKEgnec4BZuvD5o7sD4PfA,14915
29
29
  mnspy/ecuaciones_diferenciales_parciales/mef/barra.py,sha256=FB8dVdtRSMRAQYCjYgC8_yO8nShk8_uDBt5meHrAz9c,9867
30
30
  mnspy/ecuaciones_diferenciales_parciales/mef/ensamble.py,sha256=NK1dqOL_LM_tqbbTuBTsMqIItQaq5LJdHKnzbet1xhg,105482
31
31
  mnspy/ecuaciones_diferenciales_parciales/mef/marco.py,sha256=LGTZ--wfC3Bytp242aCX4iVQ4okD69tC04dIbaX8fJQ,70564
@@ -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=mPUf-jjuKQwnZPBnc7hQIatl_x-Ojz9xOhpbYImLuSU,18803
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.21.dist-info/licenses/LICENSE,sha256=wd5I6QXFrp_ipRe4KbPQuhaab3abbCGIW48aOnUQxsg,1071
67
- mnspy-0.9.21.dist-info/METADATA,sha256=vsW7ON7dMZKQKaMT9g4FgKBDhMrdOWHXSTfk_PzPvBs,4641
68
- mnspy-0.9.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
- mnspy-0.9.21.dist-info/top_level.txt,sha256=fbooZdZwS41I8vFuAXnn5qL4_mfc1aPt_DM60ZpvtKE,6
70
- mnspy-0.9.21.dist-info/RECORD,,
66
+ mnspy-0.9.23.dist-info/licenses/LICENSE,sha256=wd5I6QXFrp_ipRe4KbPQuhaab3abbCGIW48aOnUQxsg,1071
67
+ mnspy-0.9.23.dist-info/METADATA,sha256=1P-uj8X5akS6JVsxbWJdTyRK_5eIzTi4OIM0udi8Tlc,4641
68
+ mnspy-0.9.23.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
69
+ mnspy-0.9.23.dist-info/top_level.txt,sha256=fbooZdZwS41I8vFuAXnn5qL4_mfc1aPt_DM60ZpvtKE,6
70
+ mnspy-0.9.23.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