rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

Add assoc_legendre_p() to orthopoly_weight() #225

Closed rtoy closed 2 months ago

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-02 13:27:13 Created by kjak on 2012-08-03 04:00:29 Original: https://sourceforge.net/p/maxima/patches/46


I've attached a simple patch to add support for assoc_legendre_p() to orthopoly_weight().

There are two orthogonality conditions for the associated Legendre polynomials over [-1,1]: both having the same order, with weight function 1 (much the same as the regular Legendre polynomials); and both having the same degree, with weight function 1/(1-x^2). See A&S 8.14.11 and 8.14.12. I've chosen for orthopoly_weight() to return the former because (please correct me if I'm wrong) I think that condition will be expected most often. I mention this other condition in a comment in the patch.

Perhaps this ambiguity is why this function hasn't been supported in orthopoly_weight()?

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-02 13:27:14 Created by kjak on 2012-08-03 04:00:31 Original: https://sourceforge.net/p/maxima/patches/46/#aac8


Patch against git

Attachments:

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-02 13:27:17 Created by robert_dodier on 2012-08-22 18:53:13 Original: https://sourceforge.net/p/maxima/patches/46/#167d


rtoy commented 2 months ago

Imported from SourceForge on 2024-07-02 13:27:19 Created by robert_dodier on 2012-08-22 18:53:13 Original: https://sourceforge.net/p/maxima/patches/46/#e704


Applied patch as commit 4743ec4737. Thanks, Kris.