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.
>>
> ...
>>
>> FORTH> LET (2,3): F#** .print @.I…@e-0003 ok
>> FORTH> LET (2,2): F#** .print @.I…@e-0001 ok
>> FORTH> LET (3,2): F#** .print
> I'm currently using MPFR ver 4.2.1.
>
> Both mpfr_pow and mpfr_pow_ui appear to be working:
[..]
Thanks! I'll upgrade to gmp 5.0 and mpfr 4.2.2 shortly.
Meanwhile, I found that the present mpfr_pow_ui works correctly. As I don't need to compute 2.5362^2.1 that often, I'll get by :--)
-marcel