Explore angular patterns with precise harmonic values here. Choose units, phases, and real conventions easily. Download tables, plot intuition, and check orthogonality fast now.
Spherical harmonics form an orthogonal basis on the unit sphere. This tool evaluates Ylm(θ, φ) from an associated Legendre term and an azimuthal phase, reporting real/imag parts, magnitude, and phase. It also outputs a real-harmonic value for visualization workflows quickly.
Degree l is supported from 0 to 60; order m must satisfy −l ≤ m ≤ l. Theta θ is colatitude: θ=0 along +z, θ=π/2 at the equator. Phi φ is azimuth around the z-axis, typically 0…2π in many physics problems used here too.
Angular dependence enters through Pl|m|(cosθ). The calculator uses upward recurrences rather than symbolic differentiation, which is efficient for interactive use. Recursion reduces cancellation from direct closed forms and supports repeated evaluation for sweeps without heavy overhead across l and m up to the tool limits.
Many physics references include the Condon–Shortley factor (−1)m within Plm. Some engineering and graphics conventions omit it, so the tool provides a toggle. Changing it mainly flips the sign for odd m, affecting table comparisons and fitted coefficients in downstream spherical expansions.
Normalization changes amplitude, not angular shape. Orthonormal Nlm enforces ∫|Ylm|2dΩ = 1 on the unit sphere. Schmidt normalization multiplies m≠0 terms by √2, common in some geomagnetism and gravity models. Unnormalized output helps match legacy notes and quick derivations when coefficients were defined without Nlm.
The complex form uses Ylm(θ, φ)=NlmPlm(cosθ) eimφ. Negative m values follow the standard conjugation relation with a parity factor. The displayed real harmonic combines √2·cos(mφ) or √2·sin(|m|φ) with Pl|m| to produce real basis functions for maps and finite elements.
Phi-sweep and theta-sweep modes generate a table over a start–end range. Choose 2 to 721 samples for coarse previews or dense scans. The page shows 30 rows for readability, while CSV exports all rows, ready for plotting lobes or checking symmetries.
CSV export supports downstream analysis, fitting, and visualization. The PDF export creates a portable summary with parameter metadata and a preview of up to 20 rows. For validation, compute the same (l, m) under different normalizations and confirm only amplitude changes. For speed, keep l modest and tune samples to match resolution when scanning ranges of θ or φ.
Here θ is colatitude: 0 at +z, π/2 on the equator, π at −z. If you have geographic latitude, convert using θ = π/2 − latitude.
Negative orders encode the same angular frequencies with a defined symmetry. The calculator uses the standard physics relation linking Yl−m to the complex conjugate of Ylm, with a parity factor.
Use orthonormal when you want unit-power basis functions on the sphere. Use Schmidt if your reference uses √2 scaling for m ≠ 0 terms. Choose unnormalized only when matching legacy formulas that omit Nlm.
It controls whether the Condon–Shortley factor (−1)m is included in Plm. This can flip signs for odd m and will affect comparisons against sources that use a different convention.
Large l and |m| amplify numerical sensitivity because Plm spans very large and very small scales across θ. Reduce l, adjust normalization, or use fewer sweep samples if you see noisy phase or abrupt jumps.
Start and end are read in your selected unit. Phi-sweep varies φ while holding θ fixed, and theta-sweep varies θ while holding φ fixed. The tool interpolates linearly across the requested number of samples.
Yes. Expand f(θ, φ) as a sum of coefficients times Ylm. This calculator provides point values that help you test coefficients, validate conventions, and generate angular grids for fitting or simulation pipelines.
| l | m | θ (deg) | φ (deg) | Re(Y) | Im(Y) | |Y| |
|---|---|---|---|---|---|---|
| 1 | 0 | 45 | 30 | 0.34549415 | 0 | 0.34549415 |
| 2 | 1 | 60 | 45 | -0.23654367 | -0.23654367 | 0.33452327 |
| 3 | -2 | 90 | 120 | -3.12892811e-17 | 5.41946245e-17 | 6.25785621e-17 |
The complex spherical harmonic (physics convention) is:
The orthonormal normalization used in many texts is:
A common real-harmonic construction is:
This calculator computes Plm via stable recursion and reports Re, Im, magnitude, and phase.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.