Lines Matching refs:inf
11 INF = float('inf')
160 self.assertEqual(cmath.inf.real, math.inf)
161 self.assertEqual(cmath.inf.imag, 0.0)
163 self.assertEqual(cmath.infj.imag, math.inf)
171 self.assertEqual(repr(cmath.inf), "inf")
431 inf = float('inf')
432 check(complex(inf, 0), (inf, 0.))
433 check(complex(-inf, 0), (inf, pi))
434 check(complex(3, inf), (inf, pi / 2))
435 check(complex(5, -inf), (inf, -pi / 2))
436 check(complex(inf, inf), (inf, pi / 4))
437 check(complex(inf, -inf), (inf, -pi / 4))
438 check(complex(-inf, inf), (inf, 3 * pi / 4))
439 check(complex(-inf, -inf), (inf, -3 * pi / 4))
444 check(complex(inf, nan), (inf, nan))
445 check(complex(-inf, nan), (inf, nan))
446 check(complex(nan, inf), (inf, nan))
447 check(complex(nan, -inf), (inf, nan))
548 real_vals = [float('-inf'), -2.3, -0.0,
549 0.0, 2.3, float('inf'), float('nan')]