Lines Matching refs:imag
99 self.assertFloatIdentical(x.imag, y.imag)
161 self.assertEqual(cmath.inf.imag, 0.0)
163 self.assertEqual(cmath.infj.imag, math.inf)
166 self.assertEqual(cmath.nan.imag, 0.0)
168 self.assertTrue(math.isnan(cmath.nanj.imag))
325 self.assertEqual(0., z.imag)
332 self.assertEqual(0., z.imag)
351 return cmath.rect(z.real, z.imag)
394 actual = complex(abs(actual.real), actual.imag)
395 expected = complex(abs(expected.real), expected.imag)
397 actual = complex(actual.real, abs(actual.imag))
398 expected = complex(expected.real, abs(expected.imag))
413 expected.real, expected.imag,
414 actual.real, actual.imag)
418 self.rAssertAlmostEqual(expected.imag, actual.imag,
537 if abs(a.real - b[0]) > eps or abs(a.imag - b[1]) > eps: