Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)