Home | History | Annotate | Download | only in Lib

Lines Matching defs:Emax

355     can be handled by the implementation (the value Emax).
379 context.Emax-context.prec+1)
384 context.Emax-context.prec+1)
1676 # Emax if clamp==0, and between Etiny and Etop if clamp==1.
1680 exp_max = [context.Emax, Etop][context.clamp]
1692 # overflow: exp_min > Etop iff self.adjusted() > Emax
1693 ans = context._raise_error(Overflow, 'above Emax', self._sign)
1719 ans = context._raise_error(Overflow, 'above Emax', self._sign)
2173 # emax >= largest e such that 5**e < 10**p.
2174 emax = p*93//65
2175 if ye >= len(str(emax)):
2184 if e > emax:
2202 emax = p*10//3
2203 if ye >= len(str(emax)):
2211 if e > emax:
2403 # log10(self)*other >= 10**bound and bound >= len(str(Emax))
2404 # then 10**bound >= 10**len(str(Emax)) >= Emax+1 and hence
2405 # self**other >= 10**(Emax+1), so overflow occurs. The test
2411 if bound >= len(str(context.Emax)):
2412 ans = _dec_from_triple(result_sign, '1', context.Emax+1)
2490 context._raise_error(Overflow, 'above Emax', ans._sign)
2524 exp_max = [context.Emax, context.Etop()][context.clamp]
2555 # exp._exp should be between Etiny and Emax
2556 if not (context.Etiny() <= exp._exp <= context.Emax):
2565 if self_adjusted > context.Emax:
2573 if ans.adjusted() > context.Emax:
3067 if self._sign == 0 and adj > len(str((context.Emax+1)*3)):
3069 ans = _dec_from_triple(0, '1', context.Emax+1)
3678 liminf = -2 * (context.Emax + context.prec)
3679 limsup = 2 * (context.Emax + context.prec)
3878 Emax - Maximum exponent
3884 def __init__(self, prec=None, rounding=None, Emin=None, Emax=None,
3897 self.Emax = Emax if Emax is not None else dc.Emax
3950 elif name == 'Emax':
3978 (self.prec, self.rounding, self.Emin, self.Emax,
3985 'Emin=%(Emin)d, Emax=%(Emax)d, capitals=%(capitals)d, '
4006 nc = Context(self.prec, self.rounding, self.Emin, self.Emax,
4013 nc = Context(self.prec, self.rounding, self.Emin, self.Emax,
4068 """Returns maximum exponent (= Emax - prec + 1)"""
4069 return int(self.Emax - self.prec + 1)
4440 >>> c.Emax = 999
4554 >>> c.Emax = 999
4624 >>> c.Emax = 999
4663 >>> c.Emax = 999
4685 >>> c.Emax = 999
4976 >>> c.Emax = 999
4996 >>> c.Emax = 999
5021 >>> c.Emax = 999
5087 >>> c.Emax = 999
5161 >>> c.Emax = 999
6076 Emax=999999,