Riemann's Zeta Function - another approach (RPL)
|
07-02-2017, 02:54 PM
(This post was last modified: 07-02-2017 05:02 PM by Dieter.)
Post: #34
|
|||
|
|||
RE: Riemann's Zeta Function - another approach (RPL)
(07-02-2017 12:52 PM)Gerson W. Barbosa Wrote: Thank you very much, Dieter, for kind of doing my homework:-) I also did mine, and so here is a new HP41 program. First, there is a new approximation for 0,97≤x≤1,03 with an error of approx. ±0,5 units in the 10th significant digit. Then I realized that for 0,3454<x<0,97 the program may use a constant number of iterations and the results show a relatively constant error (only a few ULP) that can be compensated by a heuristc formula. Here I chose 54 terms, and the result is corrected by an amount of approx. 5 E–9/x¼. This keeps the error within about ±0,6 ULP. The lower limit for x is the point where Zeta(x) is exactly –1. Beyond this the accuracy will substantially degrade, so x=0,3453726573 is the limit here. Below this the program throws a DATA ERROR. So here is the latest version: Code: 01 LBL "ZETA" Examples: Code: 0,35 XEQ"ZETA" => -1,010511224 exact 37 s Finally Zeta(0,3453726573) returns exactly –1. The given execution times are due to V41 and a speed setting that quite exactly matches the real thing. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)