(28 48 49 50) Bernoulli Numbers
|
09-07-2023, 04:18 PM
Post: #6
|
|||
|
|||
RE: (48G) Bernoulli numbers
The following program is a translation of Albert Chan's Lua program here. Given m on the stack, the program returns the numerator on level 2 and the denominator on level 1. The results are exact for all m <= 28. The program is for the HP-28 and HP-48. It can be used in approximate mode on the HP49 and 50 but is not really necessary because those models have IBERNOULLI built in, and can use Gerald's faster program above.
The program returns 1, 1 for B(0) and 0, 1 for odd m > 2 so that the program will always return exactly two numbers regardless of input. The numerators will not be correct for n > 28 but the denominators will be. Code:
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(28 48 49 50) Bernoulli Numbers - John Keith - 09-05-2023, 05:27 PM
RE: (48G) Bernoulli numbers - Gerald H - 09-06-2023, 08:48 AM
RE: (48G) Bernoulli numbers - John Keith - 09-06-2023, 11:04 AM
RE: (48G) Bernoulli numbers - Gerald H - 09-06-2023, 02:34 PM
RE: (48G) Bernoulli numbers - Albert Chan - 09-07-2023, 03:37 PM
RE: (48G) Bernoulli numbers - John Keith - 09-07-2023 04:18 PM
RE: (28 48) Bernoulli numbers - Albert Chan - 09-09-2023, 06:33 PM
RE: (28 48) Bernoulli numbers - Albert Chan - 09-09-2023, 07:34 PM
RE: (28 48) Bernoulli numbers - John Keith - 09-08-2023, 08:09 PM
RE: (28 48) Bernoulli numbers - John Keith - 09-10-2023, 03:24 PM
RE: (28 48) Bernoulli numbers - Albert Chan - 09-10-2023, 07:39 PM
RE: (28 48) Bernoulli numbers - John Keith - 09-10-2023, 07:45 PM
RE: (28 48 49 50) Bernoulli Numbers - Gerald H - 09-17-2023, 02:32 PM
|
User(s) browsing this thread: 2 Guest(s)