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