spherical.harmonic: A function to calculate the real spherical harmonics

Description Usage Arguments Value Author(s) Examples

View source: R/s.harmonic.R

Description

A function which calculates the real (tesseral) spherical harmonics for a given degree l and order m. The spherical harmonic is evaluated at the spherical coordinate (theta,phi) on the unit sphere in S^2.

Usage

1
spherical.harmonic(l, m, theta, phi)

Arguments

l

The degree of the associated Legendre polynomial. Must me a non negative integer.

m

The order of the associated Legendre polynomial. Must be an integer.

theta

The polar angle.

phi

The azimuthal angle.

Value

The spherical harmonic evaluated at theta and phi for degree l and order m.

Author(s)

Nishan Mudalige

Examples

1
2
3
## spherical.harmonic(3, 1, pi/2, pi/4)

## spherical.harmonic(5, -2, pi/3, pi/6)

nishanmudalige/s.harmonic documentation built on Nov. 22, 2020, 2:17 p.m.