Riemann's Zeta Function - another approach (RPL)
|
05-08-2020, 04:41 PM
(This post was last modified: 05-17-2020 01:53 PM by Gerson W. Barbosa.)
Post: #85
|
|||
|
|||
RE: Riemann's Zeta Function - another approach (RPL)
Same as before, except for the shorter (90 bytes, the other verstion was 191 bytes long and a bit inaccurate near zero) and more accurate Gamma funcion.
To Dieter, who surely would improve this "improved" Gamma program as he did to Zeta, were he still among us. This nice Zeta implementation is mostly his accomplishment. HP-41CV/CX ζ(x) Code:
Γ(x), x ≥ 0 Code:
41 XEQ ZETA --> 1.000000000 ( 8.3 s) 25 R/S --> 1.000000030 ( 8.3 s) 3 R/S --> 1.202056903 (17.5 s) 2.001 R/S --> 1.643997513 (2) (21.7 s) 2 R/S --> 1.644934067 ( 5.0 s) 1.5 R/S --> 2.612375349 ( 4.3 s) 0.5 R/S --> -1.460354509 ( 4.3 s) 0 R/S --> -0.500000000 ( 4.3 s) -0.5 R/S --> -0.2078862256 (0) (10.3 s) -1 R/S --> -0.08333333344 (33) ( 9.8 s) -1.001 R/S --> -0.08316803746 (46) (27.4 s) -1.5 R/S --> -0.02548520190 (24.6 s) -2 R/S --> 0.00000000000 (23.0 s) -3 R/S --> 0.008333333350 (33) (20.9 s) -5 R/S --> -0.003968253966 (8) (17.7 s) -7 R/S --> 0.004166666668 (7) (16.4 s) -15.16 R/S --> 0.4964873582 (2) (14.5 s) -33.34 R/S --> -1.924684152E10 (13.1 s) -41.42 R/S --> -3.506595630E16 (584) (13.1 s) -48.49 R/S --> -3.653091072E22 (22) (13.2 s) -58.59 R/S --> 1.136304789E32 (92) (13.2 s) -67.97 R/S --> 1.832461183E40 (2) (13.3 s) Times on my HP-41CV ———— P.S.: For a full-range Γ(x+1) implementation please refer to Γ(x+1) [HP-41C]. ———— |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)