示例#1
0
 def test_normal(self):
     self.assertAlmostEqual(wc.wigner6j(2, 4, 6, 4, 2, 4),
                            np.sqrt(21) / 105)
     self.assertAlmostEqual(
         wc.wigner6j(8 * 2, 10 * 2, 6 * 2, 8 * 2, 6 * 2, 4 * 2),
         -635 * np.sqrt(26) / 176358)
     self.assertAlmostEqual(
         wc.wigner6j(8 * 2, 10 * 2, 6 * 2, 8 * 2, 9 * 2, 7 * 2),
         -192529 * np.sqrt(1430) / 446185740)
示例#2
0
 def test_special2(self):
     self.assertAlmostEqual(
         wc.wigner6j(10 * 2, 10 * 2, 6 * 2, 6 * 2, 9 * 2, 7 * 2),
         -11 * np.sqrt(49335) / 111435)
示例#3
0
 def test_special3(self):
     self.assertAlmostEqual(
         wc.wigner6j(2 * 2, 2 * 2, 2 * 2, 2 * 2, 2 * 2, 2 * 2), -3.0 / 70)
示例#4
0
 def test_special1(self):
     self.assertAlmostEqual(
         wc.wigner6j(2 * 2, 2 * 0, 2 * 2, 2 * 2, 2 * 2, 2 * 2), 1.0 / 5)