Lines Matching defs:NAN
8 NAN = float('nan')
34 (NAN, -INF),
35 (NAN, -2.3),
36 (NAN, -0.0),
37 (NAN, 0.0),
38 (NAN, 2.3),
39 (NAN, INF),
40 (-INF, NAN),
41 (-2.3, NAN),
42 (-0.0, NAN),
43 (0.0, NAN),
44 (2.3, NAN),
45 (INF, NAN)
79 self.fail(msg or '{!r} should be nan'.format(b))
403 # real or imaginary part NaN
416 # real or imaginary part NaN
417 self.assertEqual(abs(complex(NAN, -INF)), INF)
418 self.assertTrue(math.isnan(abs(complex(NAN, -2.3))))
419 NAN, -0.0))))
420 self.assertTrue(math.isnan(abs(complex(NAN, 0.0))))
421 self.assertTrue(math.isnan(abs(complex(NAN, 2.3))))
422 self.assertEqual(abs(complex(NAN, INF)), INF)
423 self.assertEqual(abs(complex(-INF, NAN)), INF)
424 self.assertTrue(math.isnan(abs(complex(-2.3, NAN))))
425 self.assertTrue(math.isnan(abs(complex(-0.0, NAN))))
426 self.assertTrue(math.isnan(abs(complex(0.0, NAN))))
427 self.assertTrue(math.isnan(abs(complex(2.3, NAN))))
428 self.assertEqual(abs(complex(INF, NAN)), INF)
429 self.assertTrue(math.isnan(abs(complex(NAN, NAN))))
451 self.assertTrue(cmath.isnan(NAN))
452 self.assertTrue(cmath.isnan(complex(NAN, 0)))
453 self.assertTrue(cmath.isnan(complex(0, NAN)))
454 self.assertTrue(cmath.isnan(complex(NAN, NAN)))
455 self.assertTrue(cmath.isnan(complex(NAN, INF)))
456 self.assertTrue(cmath.isnan(complex(INF, NAN)))
461 self.assertFalse(cmath.isinf(NAN))
466 self.assertTrue(cmath.isinf(complex(NAN, INF)))
467 self.assertTrue(cmath.isinf(complex(INF, NAN)))