Probleme fonction class python
Bonjour,
J'ai un bog avec mon programme python quelqu’un peu m'éclairer.
---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call last)
<ipython-input-242-f957f11382b9> in <module>
----> 1 hh.Bissection()
<ipython-input-237-da95d6f2afc8> in Bissection(soi)
23 #
24 E=1.0
---> 25 if (f1(xb)*f1(xh)) > 0.0:
26 xm2 = "La solution n\'est pas bornée"
27 elif f1((xb+xh)/2) == 0.0:
UnboundLocalError: local variable 'xb' referenced before assignment
J'ai un bog avec mon programme python quelqu’un peu m'éclairer.
---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call last)
<ipython-input-242-f957f11382b9> in <module>
----> 1 hh.Bissection()
<ipython-input-237-da95d6f2afc8> in Bissection(soi)
23 #
24 E=1.0
---> 25 if (f1(xb)*f1(xh)) > 0.0:
26 xm2 = "La solution n\'est pas bornée"
27 elif f1((xb+xh)/2) == 0.0:
UnboundLocalError: local variable 'xb' referenced before assignment
1 réponse
-
Contributeurbonjour, nous montres-tu tout ton programme?
-
-
Contributeur@Stephpeux-tu alors marquer la discussion comme résolue?
-