1

Is there a simple way to calculate the generalized associated Legendre polynomials in Python (article)? Generalized Associated Legendre Polynomials

I know that you can get the associated Legendre Polynomials using SciPy or pyshtools (article), but not the generalized ones (having two raised indices).

Yun
  • 3,056
  • 6
  • 9
  • 28
refle
  • 587
  • 3
  • 6
  • 19
  • 1
    I haven't seen any full implementation of these polynomials. However, the paper you reference, and references therein, provide a number of recurrence relations that could be used as a basis to a numerical evaluation using [continued fraction expansions](http://www.springer.com/mathematics/analysis/book/978-1-4020-6948-2). Another way would be relate the function to an hypergeometic series, and use existing packages to compute it that way. – Joey Dumont Oct 06 '21 at 15:33

1 Answers1

0

The best way I found to implement the derivative is to use the grad-functionality of jax: https://jax.readthedocs.io/en/latest/notebooks/autodiff_cookbook.html

Good luck :)

refle
  • 587
  • 3
  • 6
  • 19