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