Computes the value of a spherical harmonic function.Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 220.127.116.11 (18.104.22.168)
|C#||Visual Basic||Visual C++||F#|
public static Complex SphericalHarmonic( int l, int m, double theta, double phi )
Public Shared Function SphericalHarmonic ( l As Integer, m As Integer, theta As Double, phi As Double ) As Complex
public: static Complex SphericalHarmonic( int l, int m, double theta, double phi )
static member SphericalHarmonic : l : int * m : int * theta : float * phi : float -> Complex
The order, which must be non-negative.
The sub-order, which must lie between -l and l inclusive.
The azimuthal angle θ. This angle is usually expressed as between -π/2 and +π/2, with positive values representing the upper hemisphere and negative values representing the lower hemisphere.
The cylindrical angle φ. This angle is usually expressed as between 0 and 2π, measured counter-clockwise (as seen from above) from the positive x-axis. It is also possible to use negative values to represent clockwise movement.
The value of Yl,m(θ,φ).
|System..::..ArgumentOutOfRangeException||l is negative, or m lies outside the range [-l, l].|