(HP71B) Euler Polynomials
|
07-17-2023, 05:16 PM
Post: #1
|
|||
|
|||
(HP71B) Euler Polynomials
Euler Polynomials for HP-17B
================================ Memory Map ========== N: Order (Integer) N0:Last N (Integer) N9: N! X: X argument (Floating point) X9: X-0.5 E(): Bernoulli number array (Floating point) E0: 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 Euler polynomial. 7) Press the [f][+] keys and go to step 2. Example ======= Examples of B(N,X) are: B(8,2.5) = 56.66015625 B(6,2.5) = 21.796875 B(4,2.5) = 10.3125 Listing ======= Code: Line Step 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 EULR since it already has the values of the Euler numbers from the last round of calculations. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)