Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: special: Fix typo in specfun::kmn #10

Closed
wants to merge 1 commit into from

Conversation

Comment on lines 3536 to +3537
for (k = m + 2; k <= nn; k++)
dn[k - 1] *= rk[k - 1];
dn[k - 1] = rk[k - 1] * dn[k - 2];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the index of dn in LHS/RHS is different.

        DO 35 K=M+2,NN
35         DN(K)=RK(K)*DN(K-1)	! DN(K) and DN(K-1)

xref: https://github.com/scipy/scipy/blob/9d08eb58205fb669ff72c60080b18be61b14d8e1/scipy/special/specfun/specfun.f#L2938-L2939

@inkydragon
Copy link
Author

Already fixed by scipy/scipy#21797

@inkydragon inkydragon closed this Feb 10, 2025
@inkydragon inkydragon deleted the specfun-kmn branch February 10, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant