Lines Matching defs:math
7 import math
81 return math.ldexp(float(q), shift)
111 result = math.ldexp(q, exp)
492 namespace = {'huge': huge, 'mhuge': mhuge, 'shuge': shuge, 'math': math}
503 "math.sin(huge)", "math.sin(mhuge)",
504 "math.sqrt(huge)", "math.sqrt(mhuge)", # should do better
505 # math.floor() of an int returns an int now
506 ##"math.floor(huge)", "math.floor(mhuge)",
517 LOG10E = math.log10(math.e)
521 log10 = math.log10(value)
527 log = math.log(value)
531 self.assertRaises(ValueError, math.log, bad)
532 self.assertRaises(ValueError, math.log10, bad)
549 f, e = math.frexp(abs(value))
560 f = math.ldexp(f, CHUNK)
1108 self.assertEqual(k, 1 + math.floor(
1109 math.log(abs(x))/math.log(2) + tiny))