Riemann's Zeta Function - another approach (RPL)
|
06-30-2017, 02:20 AM
(This post was last modified: 06-30-2017 02:27 AM by Gerson W. Barbosa.)
Post: #23
|
|||
|
|||
RE: Riemann's Zeta Function - another approach (RPL)
(06-29-2017 07:47 PM)Dieter Wrote: Here is my first attempt at a HP41 version for x > 1. Maybe this or that can be reused in your 15C program, e.g. the use of less registers (the 15C would require R0...R2) or the DSE within the loop. Both your method and mine causes the series to be calculated to more terms than are really needed. For instance, Zeta(2) requires only 22 terms, but we evaluate 28 and 30 terms, respectively. A closer fit would require a longer formula, so yours presents a good compromise between size and exactness. 1.2 40 2 22 3 18 4 16 5 12 6 10 7 8 8 8 9 6 10 6 ... 12 6 13 4 ... 20 4 21 2 ... 40 2 For the 15C I gave two programs, A and B. If there's no need for the analytical continuation then B should be ignored. But A should be fast enough for x >= 1/2 if it is supposed to be called by B. Your HP-41 programs computes Zeta(1/2) in about one minute, which is pretty good. There is a typo in your line 47: RCL 00, not 01. Thank you for providing a 41 version. I will try it on the 42S. Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)