🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #177

Re: bug in mpfr-3.1.0

#177
From: Krishna Myneni
Date: Sun, 25 Oct 2026 14:48
49 lines
3098 bytes
On 10/24/26 17:44, marcel hendrix wrote:
> On 10/24/2026 8:29 PM, Krishna Myneni wrote:
...
>> If you post these new calculations which have problems in ver 3.1, I 
>> can test them with ver 4.1.
> 
...
> 
> I've found additional issues with mpfr_zeta. Here the Borwein algorithm 
> #2 delivers results as good as Mathematica, while mpfr_zeta is far from 
> the expected 40 decimals.
> 
> : F#ZETA ( -- ) F#TOS DUP F#RND mpfr_zeta DROP ; ( tos <= zeta[tos] )
> 
> Here is the correct output of the Borwein algorithm ( IIRC you have 
> that ) in iForth vs. the mpfr result for a couple of integer inputs:
> 
> FORTH> .zeta \ input  --  Borwein  --  mpfr
>     2 1.6449340668482264364724151666460251892189e+0000 
> 1.3116821137232264364724151666460251892189e+0000
>     3 1.2020569031595942853997381615114499907649e+0000 
> 1.0592003052592036603997381615114499907649e+0000
>     4 1.0823232337111381915160036965411679027747e+0000 
I have a double precision version of the zeta function based on your 
code, with automated tests from your computed reference values in the 
kForth-x packages: forth-src/fsl/extras/zzeta.4th

=== snippet from zzeta.4th ===
...
\ 60 digit reference values computed by Marcel Hendrix
\ using MPFR/MPC version of zzeta.

1e 0e f/ fconstant +inf
cr
TESTING ZETA
t{  0e zeta  ->  -5.00000000000000e-01  r}t
t{  1e zeta  ->  +inf  r}t
t{  2e zeta  ->  1.6449340668482264364724151666460251892190e r}t
t{  3e zeta  ->  1.2020569031595942853997381615114499907651e r}t
t{  4e zeta  ->  1.0823232337111381915160036965411679027749e r}t
...
=== end snippet ===

Later today I will code an mpfr version and print out the 60 digit 
reference values.

--
Krishna
Technical Details
Message-ID: <11bl4rb$3mohg$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11b2su5$229je$1@dont-email.me> <11b4t9g$204qr$1@dont-email.me> <11biler$v49b$1@dont-email.me> <11bitev$2v6pq$1@dont-email.me> <11bjcc9$2o4df$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Krishna Myneni <krishna.myneni@ccreweb.org>
Newsgroups: comp.lang.forth
Subject: Re: bug in mpfr-3.1.0
Date: Sun, 25 Oct 2026 09:48:09 -0500
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <11bl4rb$3mohg$1@dont-email.me>
References: <11b2su5$229je$1@dont-email.me> <11b4t9g$204qr$1@dont-email.me>
 <11biler$v49b$1@dont-email.me> <11bitev$2v6pq$1@dont-email.me>
 <11bjcc9$2o4df$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 25 Oct 2026 14:48:12 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3891760"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+HUl6xp3upausH96DHPCkG"; posting-host="b654d179409435798658592b30b509ca"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:5eo61ntsvSWnfgh0jjsN9NKKB0c= sha256:oHdndY1+kuMhs8MWGI+BsKTYhueC/P2iAJO9VEAyvh0=
	sha1:Cr7HZ6oUrM3fxRz6LgG9C4J1aFU= sha256:5tt5nNiJsixDj7ln9fCI+A3nkQgJZmJOrL3VscAaCTQ=
Content-Language: en-US
In-Reply-To: <11bjcc9$2o4df$1@dont-email.me>