Lines Matching refs:log10
1987 # p/log10(xc). Hence if y*log10(xc) >= p then the result is
2154 # if m > p*100//_log10_lb(xc) then m > p/log10(xc), hence xc**m >
2293 # log10(self)*other >= 10**bound and bound >= len(str(Emax))
2339 # unlike exp, ln and log10, the power function respects the
3139 """Compute a lower bound for the adjusted exponent of self.log10().
3140 In other words, find r such that self.log10() >= 10**r.
3145 # part of log10(self), and this comes directly from the
3147 # 1-1/x <= log(x) <= x-1. If x > 1 we have |log10(x)| >
3148 # (1-1/x)/2.31 > 0. If x < 1 then |log10(x)| > (1-x)/2.31 > 0
3168 def log10(self, context=None):
3174 # log10(NaN) = NaN
3179 # log10(0.0) == -Infinity
3183 # log10(Infinity) = Infinity
3187 # log10(negative or -Infinity) raises InvalidOperation
3190 'log10 of a negative value')
3192 # log10(10**n) = n
4508 def log10(self, a):
4514 >>> c.log10(Decimal('0'))
4516 >>> c.log10(Decimal('0.001'))
4518 >>> c.log10(Decimal('1.000'))
4520 >>> c.log10(Decimal('2'))
4522 >>> c.log10(Decimal('10'))
4524 >>> c.log10(Decimal('70'))
4526 >>> c.log10(Decimal('+Infinity'))
4528 >>> c.log10(0)
4530 >>> c.log10(1)
4534 return a.log10(context=self)
5474 ##### Integer arithmetic functions used by ln, log10, exp and __pow__ #####
5596 approximation to 10**p * log10(c*10**e), with an absolute error of
5675 Decimal.ln, Decimal.log10, Decimal.exp and Decimal.__pow__."""
5827 """Compute a lower bound for 100*log10(c) for a positive integer c."""