[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] missing function powm and friends
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] missing function powm and friends |
Date: |
Fri, 12 Dec 2014 12:57:46 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi.
> Date: Mon, 08 Dec 2014 09:49:35 +0100
> From: Michael Plugge <address@hidden>
> To: Aharon Robbins <address@hidden>
> CC: address@hidden
> Subject: Re: [bug-gawk] missing function powm and friends
>
> Hi Arnold,
> just out of curiosity I did a quick test for the powm() function in awk
> using the built-in GMP routines (-M). It works fine; a test with up to
> 5000 digits (16600 Bit) for base, exponent and modulus has a running
> time of just 6.7 s on my laptop (the pure GMP version requires 3.7 s),
> which is IMHO a very good result. So I'll implement the most-needed
> functions first in awk, and some time later as extension code.
>
> Best regards
>
> Michael
Great! We may still add support to the extension API for GMP / MPFR,
but it's not high priority at the moment. If you can do it in awk,
that's the best.
Thanks,
Arnold