コード例 #1
0
ファイル: test_sbf_mp.py プロジェクト: tpudlik/sbf
 def test_interrelations_kh2_exact(self):
     n = 8
     x = 1.464478579484278
     left = np.complex(sph_kn_exact(n, x))
     right = np.complex(-pi / 2 * mpc(0, 1)**(-n) *
                        sph_h2n_exact(n, -1j * x))
     assert_allclose(left, right)
コード例 #2
0
ファイル: test_sbf_mp.py プロジェクト: tpudlik/sbf
 def test_interrelations_kh2_exact(self):
     n = 8
     x = 1.464478579484278
     left = np.complex(sph_kn_exact(n, x))
     right = np.complex(-pi / 2 * mpc(0, 1) ** (-n) * sph_h2n_exact(n, -1j * x))
     assert_allclose(left, right)
コード例 #3
0
ファイル: test_sbf_mp.py プロジェクト: tpudlik/sbf
 def test_interrelations_h2_exact(self):
     n = 5
     x = 2.826012588052626
     left = np.complex(sph_h2n_exact(n, x))
     right = np.complex(sph_jn_exact(n, x) - 1j * sph_yn_exact(n, x))
     assert_allclose(left, right)
コード例 #4
0
ファイル: test_sbf_mp.py プロジェクト: tpudlik/sbf
 def test_interrelations_h2_exact(self):
     n = 5
     x = 2.826012588052626
     left = np.complex(sph_h2n_exact(n, x))
     right = np.complex(sph_jn_exact(n, x) - 1j * sph_yn_exact(n, x))
     assert_allclose(left, right)