Skip to content

The compression function F (pq_func) is unnecessarily complicated #8

@joshuaehill

Description

@joshuaehill

You are calculating F(1/z) using standard scientific programming function calls (just directly calculating the function as specified using a standard function for the incomplete gamma function). In our setting, this isn't necessary; for positive integer k the sum form of the incomplete gamma function is just a polynomial scaled by some elements that cancel in our function (see https://dlmf.nist.gov/8.4#E8 for details). For k=2 (the only value that presently applies) this whole mess simplifies to an unbelievably simple polynomial: F(z) = 2 z^3 + 2 z^2 + z. You can just use this polynomial instead of the fancy math calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions