def test_normal(self): self.assertAlmostEqual( wc.wigner3j(2 * 4, 2 * 5, 2 * 3, 2 * 2, -2 * 2, 0), 0.0215917) self.assertAlmostEqual(wc.wigner3j(5, 3, 4, 1, 1, -2), -0.243975) self.assertAlmostEqual(wc.wigner3j(10, 12, 8, 2, -4, 2), np.sqrt(143) / 429)
def test_special2(self): self.assertAlmostEqual(wc.wigner3j(3, 9, 6, 1, 3, -4), 0.146385)
def test_special3(self): self.assertAlmostEqual( wc.wigner3j(2 * 3, 2 * 3, 2 * 3, 1 * 2, -1 * 2, 0), -0.1543033)
def test_special1(self): self.assertAlmostEqual(wc.wigner3j(2, 2, 0, 0, 0, 0), -np.sqrt(1.0 / 3.0)) self.assertAlmostEqual(wc.wigner3j(6 * 2, 4 * 2, 2 * 2, 0, 0, 0), np.sqrt(5.0 / 143.0))