Skip to content

polygamma function doc bug in reflection algorithm #1279

Description

@tedgin

On the page describing the polygamma function (https://beta.boost.org/doc/libs/1_82_0/libs/math/doc/html/math_toolkit/sf_gamma/polygamma.html), in the Implementation section, there are two typos in the paragraph describing how to generate the coefficients of the terms of the cotangent derivatives. It should state that the iteration should start from c0,1=-1.

Also, the derivative used to generate the subsequent coefficients should be in terms of θ, i.e., ∂/∂θcoskθ/sinnθ.

Edit: I think I found a third doc bug related to generation of these coefficients. This time, it is the the source:

// C[k+1, n+1] += (k-n-1) * C[k, n];
. I think there is an extra - 1, i.e., the formula should be C[k+1, n+1] += (k - n) * C[k, n].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions