Lines Matching defs:log10
2111 # p/log10(xc). Hence if y*log10(xc) >= p then the result is
2278 # if m > p*100//_log10_lb(xc) then m > p/log10(xc), hence xc**m >
2417 # log10(self)*other >= 10**bound and bound >= len(str(Emax))
2463 # unlike exp, ln and log10, the power function respects the
3253 """Compute a lower bound for the adjusted exponent of self.log10().
3254 In other words, find r such that self.log10() >= 10**r.
3259 # part of log10(self), and this comes directly from the
3261 # 1-1/x <= log(x) <= x-1. If x > 1 we have |log10(x)| >
3262 # (1-1/x)/2.31 > 0. If x < 1 then |log10(x)| > (1-x)/2.31 > 0
3282 def log10(self, context=None):
3288 # log10(NaN) = NaN
3293 # log10(0.0) == -Infinity
3297 # log10(Infinity) = Infinity
3301 # log10(negative or -Infinity) raises InvalidOperation
3304 'log10 of a negative value')
3306 # log10(10**n) = n
4698 def log10(self, a):
4704 >>> c.log10(Decimal('0'))
4706 >>> c.log10(Decimal('0.001'))
4708 >>> c.log10(Decimal('1.000'))
4710 >>> c.log10(Decimal('2'))
4712 >>> c.log10(Decimal('10'))
4714 >>> c.log10(Decimal('70'))
4716 >>> c.log10(Decimal('+Infinity'))
4718 >>> c.log10(0)
4720 >>> c.log10(1)
4724 return a.log10(context=self)
5682 ##### Integer arithmetic functions used by ln, log10, exp and __pow__ #####
5788 approximation to 10**p * log10(c*10**e), with an absolute error of
5867 Decimal.ln, Decimal.log10, Decimal.exp and Decimal.__pow__."""
6019 """Compute a lower bound for 100*log10(c) for a positive integer c."""