An algorithm for the numerical evaluation of the associated Legendre functions that runs in time independent of degree and order

James Bremer
7/10/2017
math.NA

Official code: JamesCBremerJr/ALegendreEval (6 stars, Fortran, GPL-3.0, last commit 2017-09-28).

Abstract

We describe a method for the numerical evaluation of normalized versions of the associated Legendre functions $P_ν^{-μ}$ and $Q_ν^{-μ}$ of degrees $0 \leq ν\leq 1,000,000$ and orders $-ν\leq μ\leq ν$ on the interval $(-1,1)$. Our algorithm, which runs in time independent of $ν$ and $μ$, is based on the fact that while the associated Legendre functions themselves are extremely expensive to represent via polynomial expansions, the logarithms of certain solutions of the differential equation defining them are not.

Show full abstract

We exploit this by numerically precomputing the logarithms of carefully chosen solutions of the associated Legendre differential equation and representing them via piecewise trivariate Chebyshev expansions. These precomputed expansions, which allow for the rapid evaluation of the associated Legendre functions over a large swath of parameter domain mentioned above, are supplemented with asymptotic and series expansions in order to cover it entirely. The results of numerical experiments demonstrating the efficacy of our approach are presented, and our code for evaluating the associated Legendre functions is publicly available.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Algorithms for the numerical evaluation of the associated Legendre functions and their roots in time independent of degree and order

64FortranJul 6, 20179 years agoGPL-3.0

Similar Papers

Cite this paper

@article{bremer2017algorithm,
  title  = {An algorithm for the numerical evaluation of the associated Legendre functions that runs in time independent of degree and order},
  author = {James Bremer},
  year   = {2017},
  eprint = {1707.03287},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1707.03287}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1707.03287.svg)](https://codeofpaper.com/paper/1707.03287)

Discussion