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

Fix the behavior of GSL::Sf:gamma_inc and gsl mode selection for all special functions. #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jzakrzew
Copy link

This fixes a typo that caused GSL::Sf::gamma_inc to compute gamma_inc_P. Additionally, it adds a test for "natural form" variants of special functions that would have detected this issue earlier.

To make the test actually pass I had to go down the rabbit hole and fix the handling of the mode argument which was totally broken for several rb_gsl_sf_eval* functions. While at it, I refactored the mode selection code into its own function, instead of it being duplicated everywhere.

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