Article View: comp.lang.forth
Article #173Re: bug in mpfr-3.1.0
From: marcel hendrix
Date: Sat, 24 Oct 2026 16:13
Date: Sat, 24 Oct 2026 16:13
22 lines
2218 bytes
2218 bytes
On 10/19/2026 1:01 PM, Krishna Myneni wrote: > On 10/18/26 11:42 AM, marcel hendrix wrote: >> iForth uses the mpfr 3.1.0 release, and possibly other Forths do too. >> I have found that the mpfr_pow(rop, op1,op2,roundingmode) function >> does not work for at least *some* values of op1 (0 and 1 works) that >> are a power of 2 (0 and 1 work). The source hints at this, the >> documentation does not. [..] I finished debugging the mpc (arbitrary complex) libraries (same timestamps as mpfr). The mpc_pow function had the same problem as mpfr_pow. It is a bit worse, as mpc_pow_si now also has this problem (mpfr_pow_si is ok). I 'fixed' the problem by adding 1e-250 to the function argument in case it is exactly 2. There were other problems too, but they didn't affect the iForth ferrari, zgamma and zeta examples. I assume the pow and pow_... functions in the mpfr and mpc have this particular problem fixed by now. -marcel
Technical Details
Message-ID:
<11biler$v49b$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-mailReferences:
<11b2su5$229je$1@dont-email.me> <11b4t9g$204qr$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: marcel hendrix <mhx@iae.nl> Newsgroups: comp.lang.forth Subject: Re: bug in mpfr-3.1.0 Date: Sat, 24 Oct 2026 18:13:14 +0200 Organization: A noiseless patient Spider Lines: 22 Message-ID: <11biler$v49b$1@dont-email.me> References: <11b2su5$229je$1@dont-email.me> <11b4t9g$204qr$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 24 Oct 2026 16:13:16 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1020203"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FTYhCY0YYiEAXJuha0MbuQD7GOTtxFvA="; posting-host="b9e8675988f6fd571599dd5e86e97eb8" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:PpWyDtLH3wrT1XAycspi7ogh94I= sha256:Fc2qCFHP9vmxOfnRnNzSzvPRC4TGGW27fylsegKuyvQ= sha1:EDYtNnwZcW+fPwYjDDDPuDRorcQ= sha256:Z9Zd+rxMqM24aeyiZP0Wloga0qM1CDUc/CPbcNSOIDc= Content-Language: en-US In-Reply-To: <11b4t9g$204qr$1@dont-email.me>