Lines Matching refs:NINF

20 NINF = float('-inf')  variable
264 self.assertRaises(ValueError, math.acos, NINF)
276 self.assertRaises(ValueError, math.acosh, NINF)
285 self.assertRaises(ValueError, math.asin, NINF)
296 self.assertEqual(math.asinh(NINF), NINF)
305 self.ftest('atan(-inf)', math.atan(NINF), -math.pi/2)
316 self.assertRaises(ValueError, math.atanh, NINF)
328 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi)
336 self.ftest('atan2(-0., -inf)', math.atan2(-0., NINF), -math.pi)
344 self.ftest('atan2(inf, -inf)', math.atan2(INF, NINF), math.pi*3/4)
352 self.ftest('atan2(-inf, -inf)', math.atan2(NINF, NINF), -math.pi*3/4)
353 self.ftest('atan2(-inf, -2.3)', math.atan2(NINF, -2.3), -math.pi/2)
354 self.ftest('atan2(-inf, -0.)', math.atan2(NINF, -0.0), -math.pi/2)
355 self.ftest('atan2(-inf, 0.)', math.atan2(NINF, 0.0), -math.pi/2)
356 self.ftest('atan2(-inf, 2.3)', math.atan2(NINF, 2.3), -math.pi/2)
357 self.ftest('atan2(-inf, inf)', math.atan2(NINF, INF), -math.pi/4)
358 self.assertTrue(math.isnan(math.atan2(NINF, NAN)))
360 self.ftest('atan2(2.3, -inf)', math.atan2(2.3, NINF), math.pi)
366 self.ftest('atan2(-2.3, -inf)', math.atan2(-2.3, NINF), -math.pi)
372 self.assertTrue(math.isnan(math.atan2(NAN, NINF)))
426 self.assertEqual(math.copysign(INF, -0.), NINF)
427 self.assertEqual(math.copysign(NINF, 0.), INF)
428 self.assertEqual(math.copysign(NINF, -0.), NINF)
431 self.assertEqual(math.copysign(1., NINF), -1.)
433 self.assertEqual(math.copysign(INF, NINF), NINF)
434 self.assertEqual(math.copysign(NINF, INF), INF)
435 self.assertEqual(math.copysign(NINF, NINF), NINF)
438 self.assertTrue(math.isnan(math.copysign(NAN, NINF)))
455 self.assertTrue(math.isnan(math.cos(NINF)))
458 self.assertRaises(ValueError, math.cos, NINF)
468 self.assertEqual(math.cosh(NINF), INF)
484 self.assertEqual(math.exp(NINF), 0.)
570 self.assertRaises(ValueError, math.fmod, NINF, 1.)
574 self.assertEqual(math.fmod(3.0, NINF), 3.0)
575 self.assertEqual(math.fmod(-3.0, NINF), -3.0)
577 self.assertEqual(math.fmod(0.0, NINF), 0.0)
594 self.assertEqual(math.frexp(NINF)[0], NINF)
786 self.assertEqual(hypot(NINF, NAN), INF)
787 self.assertEqual(hypot(NAN, NINF), INF)
896 values = [NINF, -10.5, -0.0, 0.0, 10.5, INF, NAN]
1031 self.assertEqual(math.ldexp(NINF, -213), NINF)
1037 self.assertEqual(math.ldexp(NINF, -n), NINF)
1049 self.assertEqual(math.ldexp(NINF, n), NINF)
1064 self.assertRaises(ValueError, math.log, NINF)
1090 self.assertRaises(ValueError, math.log2, NINF)
1110 self.assertRaises(ValueError, math.log10, NINF)
1127 self.assertEqual(math.modf(NINF), (-0.0, NINF))
1140 self.assertEqual(math.pow(NINF, 1), NINF)
1142 self.assertEqual((math.pow(1, NINF)), 1.)
1158 self.assertRaises(ValueError, math.pow, 0., NINF)
1171 self.assertEqual(math.pow(INF, NINF), 0.)
1184 self.assertRaises(ValueError, math.pow, -0., NINF)
1188 self.assertEqual(math.pow(NINF, INF), INF)
1189 self.assertEqual(math.pow(NINF, 3.), NINF)
1190 self.assertEqual(math.pow(NINF, 2.3), INF)
1191 self.assertEqual(math.pow(NINF, 2.), INF)
1192 self.assertEqual(math.pow(NINF, 0.), 1.)
1193 self.assertEqual(math.pow(NINF, -0.), 1.)
1194 self.assertEqual(math.pow(NINF, -2.), 0.)
1195 self.assertEqual(math.pow(NINF, -2.3), 0.)
1196 self.assertEqual(math.pow(NINF, -3.), -0.)
1197 self.assertEqual(math.pow(NINF, NINF), 0.)
1198 self.assertTrue(math.isnan(math.pow(NINF, NAN)))
1210 self.assertEqual(math.pow(-1., NINF), 1.)
1223 self.assertEqual(math.pow(1., NINF), 1.)
1239 self.assertEqual(math.pow(1.9, NINF), 0.)
1240 self.assertEqual(math.pow(1.1, NINF), 0.)
1241 self.assertEqual(math.pow(0.9, NINF), INF)
1242 self.assertEqual(math.pow(0.1, NINF), INF)
1243 self.assertEqual(math.pow(-0.1, NINF), INF)
1244 self.assertEqual(math.pow(-0.9, NINF), INF)
1245 self.assertEqual(math.pow(-1.1, NINF), 0.)
1246 self.assertEqual(math.pow(-1.9, NINF), 0.)
1397 for value in [NAN, 0.0, -0.0, 2.0, -2.3, NINF, INF]:
1404 self.assertEqual(math.remainder(value, NINF), value)
1408 for value in [NINF, -2.3, -0.0, 0.0, 2.3, INF]:
1412 math.remainder(NINF, value)
1425 self.assertTrue(math.isnan(math.sin(NINF)))
1428 self.assertRaises(ValueError, math.sin, NINF)
1437 self.assertEqual(math.sinh(NINF), NINF)
1447 self.assertRaises(ValueError, math.sqrt, NINF)
1457 self.assertTrue(math.isnan(math.tan(NINF)))
1460 self.assertRaises(ValueError, math.tan, NINF)
1469 self.ftest('tanh(-inf)', math.tanh(NINF), -1)
2084 self.assertIsClose(NINF, NINF)
2085 self.assertIsClose(NINF, NINF, abs_tol=0.0)
2094 (INF, NINF),