Ha = HO["Adjoint"].appliedInXTo
#
# ----------
- Perturbations = [ 10**i for i in xrange(self._parameters["EpsilonMinimumExponent"],1) ]
+ Perturbations = [ 10**i for i in range(self._parameters["EpsilonMinimumExponent"],1) ]
Perturbations.reverse()
#
X = numpy.asmatrix(numpy.ravel( Xb )).T
#
# Utilisation éventuelle d'un vecteur H(Xb) précalculé (sans cout)
# ----------------------------------------------------------------
- if HO["AppliedToX"] is not None and HO["AppliedToX"].has_key("HXb"):
+ if HO["AppliedToX"] is not None and "HXb" in HO["AppliedToX"]:
HXb = HO["AppliedToX"]["HXb"]
else:
HXb = Hm * Xb
Ht = HO["Tangent"].appliedInXTo
#
# ----------
- Perturbations = [ 10**i for i in xrange(self._parameters["EpsilonMinimumExponent"],1) ]
+ Perturbations = [ 10**i for i in range(self._parameters["EpsilonMinimumExponent"],1) ]
Perturbations.reverse()
#
X = numpy.asmatrix(numpy.ravel( Xb )).T
#
Residus = self.StoredVariables["Residu"][-len(Perturbations):]
if self._parameters["ResiduFormula"] in ["Taylor", "TaylorOnNorm"]:
- PerturbationsCarre = [ 10**(2*i) for i in xrange(-len(NormesdFXGdX)+1,1) ]
+ PerturbationsCarre = [ 10**(2*i) for i in range(-len(NormesdFXGdX)+1,1) ]
PerturbationsCarre.reverse()
dessiner(
Perturbations,
__g('set grid')
__g('set autoscale')
__g('set title "'+titre+'"')
- # __g('set xrange [] reverse')
+ # __g('set range [] reverse')
# __g('set yrange [0:2]')
#
if logX:
#
# Construction des perturbations
# ------------------------------
- Perturbations = [ 10**i for i in xrange(self._parameters["EpsilonMinimumExponent"],1) ]
+ Perturbations = [ 10**i for i in range(self._parameters["EpsilonMinimumExponent"],1) ]
Perturbations.reverse()
#
# Calcul du point courant
#
# Construction des perturbations
# ------------------------------
- Perturbations = [ 10**i for i in xrange(self._parameters["EpsilonMinimumExponent"],1) ]
+ Perturbations = [ 10**i for i in range(self._parameters["EpsilonMinimumExponent"],1) ]
Perturbations.reverse()
#
# Calcul du point courant