(HP71B) Bernoulli Polynomials
|
07-14-2023, 10:00 PM
(This post was last modified: 07-17-2023 05:08 PM by Namir.)
Post: #1
|
|||
|
|||
(HP71B) Bernoulli Polynomials
Bernoulli Polynomials for HP-17B
================================ Memory Map ========== N: Order (Integer) N0:Last N (Integer) X: X argument (Floating point) B(): Bernoulli number array (Floating point) B0: Bernoulli polynomial Bern(N,X) (Floating point) I, J, K, M: Loop control variables (Integer) Usage ===== 1) Press RUN key. 2) The program displays the prompt "N? ". 3) Enter N and press the END LINE key. 4) The program displays the prompt "X? ". 5) Enter X and press the END LINE key. 6) The program displays N, X, and the value of the Bernoulli polynomial. 7) Press the [f][+] keys and go to step 2. Example ======= Examples of B(N,X) are: B(8,2) = 7.96666666751 B(6,3) = 198.023809524 B(4,4) = 143.966666667 Listing ======= Code:
The above code checks if the value of N you enter is the same one you entered the last time. If so, the code skips calling the subroutine BERN since it already has the values of the Bernoulli numbers from the last round of calculations. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(HP71B) Bernoulli Polynomials - Namir - 07-14-2023 10:00 PM
RE: (HP71B) Bernoulli Polynomials - C.Ret - 07-17-2023, 07:16 PM
RE: (HP71B) Bernoulli Polynomials - rprosperi - 07-17-2023, 11:04 PM
RE: (HP71B) Bernoulli Polynomials - John Keith - 07-17-2023, 11:59 PM
|
User(s) browsing this thread: 4 Guest(s)