spherical_harmonic

Calculates the spherical harmonic. Spherical harmonics are the angular portion of the solutionto Laplace's equation in spherical coordinates where azimuthalsymmetry is not present. Depending on input, function can return scalar, vector, matrix or complex number.

Arguments

  1. Integer value n
  2. Integer value m
  3. Real value theta
  4. Real value phi

Output

Complex number result

Examples

spherical_harmonic