rtoy / maxima

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

Make orthopoly_recur(legendre_p, ...) indices consistent #224

Closed rtoy closed 4 months ago

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 13:26:56 Created by kjak on 2012-08-01 21:14:18 Original: https://sourceforge.net/p/maxima/patches/45


The recurrence relation given by orthopoly_recur() for legendre_{p,q}() is inconsistent with relations for other polynomials in that it gives the Legendre polynomial of degree (n) in terms of polynomials of degree (n-1) and (n-2) instead of giving the (n+1) polynomial in terms of (n) and (n-1) like the others. This patch makes it consistent with the other results (such as assoc_legendre_{p,q}) and with A&S p782.

This patch also corrects two recurrence relations (ultraspherical and hermite) in the comments. orthopoly_recur() gives the same relations as A&S, but there were sign errors in the comments.

To avoid possibly garbled text, I'll also attach a file showing the previous result for legendre_p(n,x), the result for assoc_legendre_p(n,0,x) and the new result for legendre_p(n,x), showing that the latter two are in the same form. (I guess I can upload other files after I initially submit this).

Thanks, Kris Katterjohn

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 13:26:58 Created by kjak on 2012-08-01 21:14:19 Original: https://sourceforge.net/p/maxima/patches/45/#6d73


Patch against git

Attachments:

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 13:27:00 Created by kjak on 2012-08-01 21:15:03 Original: https://sourceforge.net/p/maxima/patches/45/#2542


Output described in Description above

Attachments:

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 13:27:02 Created by kjak on 2012-08-01 23:15:42 Original: https://sourceforge.net/p/maxima/patches/45/#623a


orthopoly_recur() doc patch, described in Comments

Attachments:

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 13:27:04 Created by kjak on 2012-08-01 23:20:17 Original: https://sourceforge.net/p/maxima/patches/45/#6779


I just noticed that the description for orthopoly_recur() shows an example of its usage with legendre_p(). I'm not sure how the doc system works, but I attached a patch to update the output in doc/info/orthopoly.texi. I see that files in subdirectories of doc/info also contain this text, but I'm not sure if it just requires substituting in each file separately or if there is some generation process that takes care of it. Hopefully this helps either way.

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 13:27:07 Created by robert_dodier on 2012-08-22 18:55:38 Original: https://sourceforge.net/p/maxima/patches/45/#ad9c


rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 13:27:09 Created by robert_dodier on 2012-08-22 18:55:38 Original: https://sourceforge.net/p/maxima/patches/45/#d925


Applied as commit e5a8abaa23ca and commit ff248ac1ee83a. Thanks, Kris.