SphericalHarmonics.jl
Associated Legendre Polynomials and Spherical Harmonics in Julia
Install / Use
/learn @milthorpe/SphericalHarmonics.jlREADME
Associated Legendre Polynomials and Spherical Harmonics Computation for Chemistry Applications
A Julia module for accurate and efficient computation of associated Legendre polynomials and real spherical harmonics for use in chemistry applications.
Our algorithms are based on the following design principles:
- Normalize polynomials P*<sub>l</sub><sup>m</sup>* to avoid overflow/underflow.
- Use a RR in the direction of increasing l for ALPs for stability.
- Use trigonometric RRs for sin and cos functions in SHs to save time.
- Precompute coefficients in the RRs to reduce computational cost.
- Compute an entire set of normalized P*<sub>l</sub><sup>m</sup>* where m ≥ 0 in a single function call to reduce overhead.
- Avoid loop dependencies in inner loops, allowing operations to be vectorized and pipelined for execution.
For a full description of the code, please see:
Associated Legendre Polynomials and Spherical Harmonics Computation for Chemistry Applications (2014). Taweetham Limpanuparb and Josh Milthorpe. arXiv: 1410.1748 [physics.chem-ph]
Related Skills
node-connect
335.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
335.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.7kCommit, push, and open a PR
