Every line of 'python log10' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
92 def _log10(x): 93 if isinstance(x, complex) or x < 0: 94 return cmath.log10(x) 95 else: 96 return math.log10(x)
431 def log10(self): 432 return theano.tensor.log10(self)
85 def log10(self, x): pass
84 def log10(arg): 85 return _generate_intrinsic_function_expression(arg, 'log10', math.log10)
54 def trylog10(value): 55 if (value
179 @lower(cmath.log10, types.Complex) 180 def log10_impl(context, builder, sig, args): 181 LN_10 = 2.302585092994045684 182 183 def log10_impl(z): 184 """cmath.log10(z)""" 185 z = cmath.log(z) 186 # This formula gives better results on +/-inf than cmath.log(z, 10) 187 # See http://bugs.python.org/issue22544 188 return complex(z.real / LN_10, z.imag / LN_10) 189 190 res = context.compile_internal(builder, log10_impl, sig, args) 191 return impl_ret_untracked(context, builder, sig, res)