gmp 6.2.0 documentation bug
Hans Åberg
haberg-1 at telia.com
Wed Sep 30 20:18:35 UTC 2020
> On 29 Sep 2020, at 19:17, Marco Bodrato <bodrato at mail.dm.unipi.it> wrote:
>
> Il 2020-09-29 16:09 TonyMcC ha scritto:
>> I think there is a word (a function name?) missing from the
>> documentation for gmp 6.2.0. In gmp.texi, at line 2541 it reads:
>> "it's probably best to call to get a starting point and iterate from there."
>> Should there be a function name after "call"?
>
> The complete sentence is:
>
> Functions like @code{mpz_fac_ui}, @code{mpz_fib_ui} and @code{mpz_bin_uiui}
> are designed for calculating isolated values. If a range of values is wanted
> it's probably best to call to get a starting point and iterate from there.
>
> Maybe we can simply remove "to call".
>
> The documentation of mpz_fib_ui correctly suggests the function to call: mpz_fib2_ui.
>
> Speaking about mpz_fac_ui and mpz_bin_uiui, it shouldn't be necessary to suggest how to get the starting point.
It might say:
If a range of values is wanted, see the definition respective function.
Since it is properly described for first two. For the binomials, it would be most efficient to compute the trapezoid above the values in Pascal's triangle, I would think, and the function does not provide an efficient way to get that.
More information about the gmp-bugs
mailing list