| spherical_harmonics | R Documentation |
Functions to compute spherical harmonics and related functions.
spherical_harmonic(n, m, theta, phi)
spherical_harmonic_r(n, m, theta, phi)
spherical_harmonic_i(n, m, theta, phi)
n |
Degree of the spherical harmonic |
m |
Order of the spherical harmonic |
theta |
Polar angle (colatitude) |
phi |
Azimuthal angle (longitude) |
A single complex value with the computed spherical harmonic function, or its real and imaginary parts.
# Spherical harmonic function Y_2^1(0.5, 0.5)
spherical_harmonic(2, 1, 0.5, 0.5)
# Real part of the spherical harmonic function Y_2^1(0.5, 0.5)
spherical_harmonic_r(2, 1, 0.5, 0.5)
# Imaginary part of the spherical harmonic function Y_2^1(0.5, 0.5)
spherical_harmonic_i(2, 1, 0.5, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.