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)
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)
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)