Esempio n. 1
0
 def test_re_im_6(self):
     self.assertAlmostEqual(hfmath.re_im_to_complex(-1, -2), -1 - 2j)
Esempio n. 2
0
 def test_re_im_2(self):
     self.assertAlmostEqual(hfmath.re_im_to_complex(1, 0), 1 + 0j)
Esempio n. 3
0
 def test_re_im_4(self):
     self.assertAlmostEqual(hfmath.re_im_to_complex(-1, 2), -1 + 2j)
Esempio n. 4
0
 def test_re_im_1(self):
     self.assertAlmostEqual(hfmath.re_im_to_complex(0, 0), 0j)