Article View: comp.lang.forth
Article #174Re: bug in mpfr-3.1.0
From: Krishna Myneni
Date: Sat, 24 Oct 2026 18:29
Date: Sat, 24 Oct 2026 18:29
28 lines
2437 bytes
2437 bytes
On 10/24/26 11:13 AM, marcel hendrix wrote: > 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. > If you post these new calculations which have problems in ver 3.1, I can test them with ver 4.1. -- KM
Technical Details
Message-ID:
<11bitev$2v6pq$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> <11biler$v49b$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: Sat, 24 Oct 2026 13:29:51 -0500 Organization: A noiseless patient Spider Lines: 28 Message-ID: <11bitev$2v6pq$1@dont-email.me> References: <11b2su5$229je$1@dont-email.me> <11b4t9g$204qr$1@dont-email.me> <11biler$v49b$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 18:29:52 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3119930"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WeV9u3b2dpBnt6ibmRoWU"; posting-host="38c66f3eea378a9b8b9ef873224b0b85" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:jiHWY/Z8IAQ+vZCng5A67PcUzAs= sha256:X5tiW8p0dxOJDGCaS/MUHuYl9BlHN7dp7bb48+pLTpE= sha1:6427UVNDKlCg5n3Hf6DgcmtmX6Q= sha256:cGlmFoB2yMNt5orCbgSD/LbEBcoY1UARvO+1xqPabHY= In-Reply-To: <11biler$v49b$1@dont-email.me> Content-Language: en-US