Skip to content

Strange discrepancy in correction factor calculations #601

Closed
@mreineck

Description

@mreineck

Lines

int q = (int)(2 + 3.0 * J2); // not sure why so large? cannot exceed MAX_NQUAD

and

int q = (int)(2 + 2.0 * J2); // > pi/2 ratio. cannot exceed MAX_NQUAD

read slightly differently, but I don't really understand why they should be different at all. The first version agrees with the FINUFFT paper (see the line below eq 3.10), but the reduced accuracy caused by the second version doesn't seem to cause any test failures either ... strange.

Given the comment in the source, I'm apparently not the first one wondering about this.

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