(HP49/50) Laguerre Polynomials
|
02-22-2020, 06:02 PM
Post: #1
|
|||
|
|||
(HP49/50) Laguerre Polynomials
The following program returns the value of the nth Laguerre polynomial L_n(x) at x. To use the program, n (which must be an integer) should be on level 2, and x should be on level 1. If x is an integer, the result will be an integer or a rational number.
The formula given on the Wikipedia page is very slow to compute in practice because many intermediate terms have non-integer values. Instead the coefficients of the nth polynomial are computed and fed to the built-in PEVAL command which is quite fast. Code:
|
|||
02-28-2020, 08:53 PM
Post: #2
|
|||
|
|||
RE: (HP49/50) Laguerre Polynomials
A new version of the above program which is shorter and faster, but requires the ListExt and GoferLists libraries. The command COXF is the ConvOffs transform, the first program here.
Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)