Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associated Legendre polynomials are requested #124

Open
feima0011 opened this issue Oct 2, 2018 · 11 comments
Open

Associated Legendre polynomials are requested #124

feima0011 opened this issue Oct 2, 2018 · 11 comments

Comments

@feima0011
Copy link

Associated Legendre polynomials are requested
https://en.wikipedia.org/wiki/Associated_Legendre_polynomials

@ludoro
Copy link

ludoro commented Dec 14, 2018

I would love to try and implement these! Working on it.

@simonbyrne
Copy link
Member

@feima0011 Can you expand on how you're using them? i.e. are you evaluating the same polynomial multiple times? If so, is it on a grid?

@feima0011
Copy link
Author

@feima0011 Can you expand on how you're using them? i.e. are you evaluating the same polynomial multiple times? If so, is it on a grid?

I am working on the acoustic wave equations. I need the Associated Legendre polynomials
to calculate the spherical harmonics. I have to calculate the value of the Associated Legendre polynomials multiple times, and they are on a grid.

@simonbyrne
Copy link
Member

Do you have a link to code where they are used?

@feima0011
Copy link
Author

feima0011 commented Dec 18, 2018

Currently, i am using the GSL.jl library to calculate the Associated Legendre polynomials .
The following library have code for calculate the Associated Legendre polynomials, but it is outdated.
https://github.com/milthorpe/SphericalHarmonics.jl

@MikaelSlevinsky
Copy link
Contributor

Have you tried using the spherical harmonica transforms in FastTransforms.jl? There is an example on usage here https://github.com/MikaelSlevinsky/FastTransforms.jl/blob/master/examples/sphere.jl

@feima0011
Copy link
Author

feima0011 commented Dec 28, 2018 via email

@arturgower
Copy link

I agree with Fei. Associated Legendre polynomials, and spherical harmonics, are core to so many branches of physics. They involve many connections to other special functions and complicated identities. It makes sense to have them embedded in SpecialFunctions.jl.

@PaulXiCao
Copy link
Contributor

We could start at Legendre Polynomials, then Associated Legendre Polynomials and then Spherical Harmonics?

Concerning Legendre Polynomials
We should implement a standard method using the recurrenc relation which is alright for small orders.
For higher orders I found a paper which describes an algorithm to compute Legendre Polynomials in constant time by precomputation. It is quite involved. I am not sure if we should include that in SpecialFunctions. Maybe a standalone package is better?

@PaulXiCao
Copy link
Contributor

The associated Legendre polynomials (functions of first kind) have been implemented by a simple recursion formula in pr #175 (one of the later commits).

@LeoGalPras
Copy link

Should this be merged with issues #175 and #177 ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants