Lines Matching refs:imag
29 unittest.TestCase.assertAlmostEqual(self, a.imag, b.imag)
32 unittest.TestCase.assertAlmostEqual(self, a.imag, 0.)
36 unittest.TestCase.assertAlmostEqual(self, 0., b.imag)
78 self.assertCloseAbs(x.imag, y.imag, eps)
116 self.assertTrue(isnan(z.imag))
167 def check(n, deltas, is_equal, imag = 0.0): argument
170 z = complex(i, imag)
260 for imag in values:
261 with self.subTest(real=real, imag=imag):
262 c = complex(real, imag)
370 self.assertAlmostEqual(complex(real=17, imag=23), 17+23j)
372 self.assertAlmostEqual(complex(real=17+23j, imag=23), 17+46j)
373 self.assertAlmostEqual(complex(real=1+2j, imag=3+4j), -3+5j)
382 self.assertEqual(split_zeros(complex(1., 0.).imag), split_zeros(0.))
383 self.assertEqual(split_zeros(complex(1., -0.).imag), split_zeros(-0.))
458 self.assertAlmostEqual(complex(real=float2(17.), imag=float2(23.)), 17+23j)
511 self.assertFloatsAreIdentical(z.imag, y)
515 self.assertFloatsAreIdentical(z.imag, y)
519 self.assertFloatsAreIdentical(z.imag, y)
523 self.assertFloatsAreIdentical(z.imag, y)
546 self.assertAlmostEqual((num.real**2 + num.imag**2) ** 0.5, abs(num))
606 self.assertEqual(atan2(z1.imag, -1.), atan2(0., -1.))
607 self.assertEqual(atan2(z2.imag, -1.), atan2(-0., -1.))
619 self.assertFloatsAreIdentical(z0.imag, -0.0)
621 self.assertFloatsAreIdentical(z1.imag, -7.0)
623 self.assertFloatsAreIdentical(z2.imag, -INF)
643 self.assertFloatsAreIdentical(z.imag, roundtrip.imag)
656 self.assertFloatsAreIdentical(0.0 + z.imag,
657 0.0 + roundtrip.imag)