Skip to content

FFTLog example in docs not reproducible #1

@MartinKaercher

Description

@MartinKaercher

Hi hankl-Team,
I am currently working on my own FFTLog implementation and I wanted to compare my code with your package.
When I copy the code from the docs where the function k*np.exp(-k**2 / 2) is transformed I found that I am not getting exactly the same as in the docs, the behaviour at low-k is different and differs more from the analytical expression.
I have appended a plot with the visible feature.
I am running Python 3.9.7 on a Mac with numpy 1.26.3 and hankl 1.1.
test

As a side-note: I think there is a small typo in the example code in the docs ax2.yaxis.set_label_position("left") should be ax1.yaxis.set_label_position("left") I think, as ax2 is not yet defined at that point and would raise an error.
Thanks for your help!
Cheers,
Martin

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