Search code examples
pythonmathnumerical-methodsexpansion

Generalized associated Legendre Polynomials


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).


Solution

  • 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 :)