Riemann's Zeta Function - another approach (RPL)
|
07-30-2017, 04:17 PM
(This post was last modified: 07-30-2017 04:19 PM by Gerson W. Barbosa.)
Post: #65
|
|||
|
|||
RE: Riemann's Zeta Function - another approach (RPL)
(07-30-2017 07:57 AM)Dieter Wrote: BTW, I see your program has a RCL 00 in line 24. For x≤2 the ZETA routine leaves x in R00, but for x>2 R00 finally holds –x. Have you considered this? Yes, that's what ABS in line 19 is for. (07-30-2017 07:57 AM)Dieter Wrote: BTW2, on 10-digit calculators 2 pi does not round very well, the last digit is 1 unit high. So I suggest to replace step 09/10 in your program with 360 D–R which returns the correct value 6,283185307. The same is true for pi/4 or pi/6 where 45 resp. 30 D–R yields ten correct digits. That's a good suggestion, but we'd need x! (or Gamma) to be that accurate too. Is there a math module with x! or Gamma? A few guard digits (perhaps just a couple of them) combined with built-in Gamma might give perfect 10-digit results most always, even when using 10-digits constants, which is quite impressive. On Free42: 3 XEQ "Z" --> 1.20205690313 (6) 2.001 R/S --> 1.64399751259 (24) 2 R/S --> 1.64493406685 1.5 R/S --> 2.61237534868 (9) 0.5 R/S --> -1.46035450879 (81) 0 R/S --> -0.50000000000 -0.5 R/S --> -0.207886224977 -1 R/S --> -0.0833333333333 -1.001 R/S --> -0.0831680372461 (281) -1.5 R/S --> -0.0254852018937 (898) -2 R/S --> 0.0000000000000 -3 R/S --> 0.00833333333191 (333) -5 R/S --> -0.00396825396801 (25) -7 R/S --> 0.00416666666663 (7) Code:
Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)