class_docstr: Tests for LAX-backed Scipy implementation.
class_docstr_tok: ["Tests","for","LAX-backed","Scipy","implementation","."]
docstr: Tests the spherical harmonics of order one and degree zero.
docstr_tok: ["Tests","the","spherical","harmonics","of","order","one","and","degree","zero","."]
code: def testSphHarmOrderZeroDegreeOne(self):
      """Tests the spherical harmonics of order one and degree zero."""
      theta = jnp.array([2.0])
      phi = jnp.array([3.1])
      n_max = 1
  
      expected = jnp.sqrt(3.0 / (4.0 * np.pi)) * jnp.cos(phi)
      actual = jnp.real(
          lsp_special.sph_harm(
              jnp.array([0]), jnp.array([1]), theta, phi, n_max
          )
      )
  
      self.assertAllClose(actual, expected, rtol=2e-7, atol=6e-8)
  
imports: from functools import partial
  import itertools
  import unittest
  from absl.testing import absltest
  import numpy
  import scipy.integrate
  import scipy.special
  import scipy.cluster
  import jax
  import jax.dtypes
  from jax import numpy
  from jax import lax
  from jax import scipy
  from jax.tree_util import tree_map
  from jax._src.scipy import special
  from jax._src import test_util
  from jax.scipy import special
  from jax.scipy import cluster
  from jax import config
label_desc: Use image node_id 21 for calling the LaxBackedScipyTests obj's underlying member method code with example usage: obj.testSphHarmOrderZeroDegreeOne() without return types