Exemplo n.º 1
0
 def test_interrelations_kh1_exact(self):
     n = 4
     x = 4.403387573037941
     left = np.complex(sph_kn_exact(n, x))
     right = np.complex(-pi / 2 * mpc(0, 1) ** n * sph_h1n_exact(n, 1j * x))
     assert_allclose(left, right)
Exemplo n.º 2
0
 def test_interrelations_kh1_exact(self):
     n = 4
     x = 4.403387573037941
     left = np.complex(sph_kn_exact(n, x))
     right = np.complex(-pi / 2 * mpc(0, 1)**n * sph_h1n_exact(n, 1j * x))
     assert_allclose(left, right)
Exemplo n.º 3
0
 def test_interrelations_h1_exact(self):
     n = 6
     x = 8.160875740148962
     left = np.complex(sph_h1n_exact(n, x))
     right = np.complex(sph_jn_exact(n, x) + 1j * sph_yn_exact(n, x))
     assert_allclose(left, right)
Exemplo n.º 4
0
 def test_interrelations_h1_exact(self):
     n = 6
     x = 8.160875740148962
     left = np.complex(sph_h1n_exact(n, x))
     right = np.complex(sph_jn_exact(n, x) + 1j * sph_yn_exact(n, x))
     assert_allclose(left, right)