(48G/50g) Binomial Transform, Difference Table
|
05-27-2019, 09:07 PM
(This post was last modified: 10-19-2024 01:20 PM by John Keith.)
Post: #8
|
|||
|
|||
RE: (48G/50g) Binomial Transform, Difference Table
Following on from the last two posts, a much faster binomial transform program for sequences defined by simple polynomials. Sequences defined by an nth degree polynomial are binomial transforms of a sequence beginning with n+1 terms followed by an arbitrary number of zeros. For instance, A000292, the tetrahedral numbers, is the binomial transform of { 1 3 3 1 0 0 0... }.
The following program requires a list of the non-zero terms on level 2 and a number on level 1 which is the number of terms to return. The list on level 2 must have at least two terms. For example, with { 1 3 3 1 } on level 2 and 12 on level 1, the program will return a list of the first 12 tetrahedral numbers. Code:
This program is HP 50g only since it uses commands from the ListExt Library The following version is compatible with the HP-48G. It is longer and slower than the HP 50 version but still reasonably fast. The list on level 2 must have at least two terms. Code:
Edited to remove reference to GoferLists and replace GoferLists functions with those from ListExt. Edited to improve the above programs. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(48G/50g) Binomial Transform, Difference Table - John Keith - 01-17-2019, 09:56 PM
RE: (48G/50g) Binomial Transform, Difference Table - Thomas Klemm - 01-18-2019, 05:53 AM
RE: (48G/50g) Binomial Transform, Difference Table - John Keith - 01-18-2019, 08:01 PM
RE: (48G/50g) Binomial Transform, Difference Table - Thomas Klemm - 01-18-2019, 08:14 AM
RE: (48G/50g) Binomial Transform, Difference Table - John Keith - 01-18-2019, 07:39 PM
RE: (48G/50g) Binomial Transform, Difference Table - Thomas Klemm - 01-18-2019, 08:50 PM
RE: (48G/50g) Binomial Transform, Difference Table - John Keith - 01-18-2019, 09:44 PM
RE: (48G/50g) Binomial Transform, Difference Table - John Keith - 05-27-2019 09:07 PM
|
User(s) browsing this thread: 4 Guest(s)