• Home
  • Raw
  • Download

Lines Matching refs:INF

7 INF = float('inf')  variable
12 (INF, 0.0), # 1st quadrant
13 (INF, 2.3),
14 (INF, INF),
15 (2.3, INF),
16 (0.0, INF),
17 (-0.0, INF), # 2nd quadrant
18 (-2.3, INF),
19 (-INF, INF),
20 (-INF, 2.3),
21 (-INF, 0.0),
22 (-INF, -0.0), # 3rd quadrant
23 (-INF, -2.3),
24 (-INF, -INF),
25 (-2.3, -INF),
26 (-0.0, -INF),
27 (0.0, -INF), # 4th quadrant
28 (2.3, -INF),
29 (INF, -INF),
30 (INF, -2.3),
31 (INF, -0.0)
34 (NAN, -INF),
39 (NAN, INF),
40 (-INF, NAN),
45 (INF, NAN)
413 self.assertAlmostEqual(phase(complex(-INF, -0.0)), -pi)
414 self.assertAlmostEqual(phase(complex(-INF, -2.3)), -pi)
415 self.assertAlmostEqual(phase(complex(-INF, -INF)), -0.75*pi)
416 self.assertAlmostEqual(phase(complex(-2.3, -INF)), -pi/2)
417 self.assertAlmostEqual(phase(complex(-0.0, -INF)), -pi/2)
418 self.assertAlmostEqual(phase(complex(0.0, -INF)), -pi/2)
419 self.assertAlmostEqual(phase(complex(2.3, -INF)), -pi/2)
420 self.assertAlmostEqual(phase(complex(INF, -INF)), -pi/4)
421 self.assertEqual(phase(complex(INF, -2.3)), -0.0)
422 self.assertEqual(phase(complex(INF, -0.0)), -0.0)
423 self.assertEqual(phase(complex(INF, 0.0)), 0.0)
424 self.assertEqual(phase(complex(INF, 2.3)), 0.0)
425 self.assertAlmostEqual(phase(complex(INF, INF)), pi/4)
426 self.assertAlmostEqual(phase(complex(2.3, INF)), pi/2)
427 self.assertAlmostEqual(phase(complex(0.0, INF)), pi/2)
428 self.assertAlmostEqual(phase(complex(-0.0, INF)), pi/2)
429 self.assertAlmostEqual(phase(complex(-2.3, INF)), pi/2)
430 self.assertAlmostEqual(phase(complex(-INF, INF)), 0.75*pi)
431 self.assertAlmostEqual(phase(complex(-INF, 2.3)), pi)
432 self.assertAlmostEqual(phase(complex(-INF, 0.0)), pi)
445 self.assertEqual(abs(z), INF)
448 self.assertEqual(abs(complex(NAN, -INF)), INF)
453 self.assertEqual(abs(complex(NAN, INF)), INF)
454 self.assertEqual(abs(complex(-INF, NAN)), INF)
459 self.assertEqual(abs(complex(INF, NAN)), INF)
481 self.assertFalse(cmath.isnan(INF))
486 self.assertTrue(cmath.isnan(complex(NAN, INF)))
487 self.assertTrue(cmath.isnan(complex(INF, NAN)))
493 self.assertTrue(cmath.isinf(INF))
494 self.assertTrue(cmath.isinf(complex(INF, 0)))
495 self.assertTrue(cmath.isinf(complex(0, INF)))
496 self.assertTrue(cmath.isinf(complex(INF, INF)))
497 self.assertTrue(cmath.isinf(complex(NAN, INF)))
498 self.assertTrue(cmath.isinf(complex(INF, NAN)))