コード例 #1
0
ファイル: test_sbf_mp.py プロジェクト: tpudlik/sbf
 def test_interrelations_kh1_bessel(self):
     n = 4
     x = 4.403387573037941
     left = np.complex(sph_kn_bessel(n, x))
     right = np.complex(-pi / 2 * mpc(0, 1) ** n * sph_h1n_bessel(n, 1j * x))
     assert_allclose(left, right)
コード例 #2
0
ファイル: test_sbf_mp.py プロジェクト: tpudlik/sbf
 def test_interrelations_kh1_bessel(self):
     n = 4
     x = 4.403387573037941
     left = np.complex(sph_kn_bessel(n, x))
     right = np.complex(-pi / 2 * mpc(0, 1)**n * sph_h1n_bessel(n, 1j * x))
     assert_allclose(left, right)
コード例 #3
0
ファイル: test_sbf_mp.py プロジェクト: tpudlik/sbf
 def test_interrelations_h1_bessel(self):
     n = 6
     x = 8.160875740148962
     left = np.complex(sph_h1n_bessel(n, x))
     right = np.complex(sph_jn_bessel(n, x) + 1j * sph_yn_bessel(n, x))
     assert_allclose(left, right)
コード例 #4
0
ファイル: test_sbf_mp.py プロジェクト: tpudlik/sbf
 def test_interrelations_h1_bessel(self):
     n = 6
     x = 8.160875740148962
     left = np.complex(sph_h1n_bessel(n, x))
     right = np.complex(sph_jn_bessel(n, x) + 1j * sph_yn_bessel(n, x))
     assert_allclose(left, right)