bugGNU Scientific Library - Bugs: bug #53905, Bug in Hypergeometric function

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #53905: Bug in Hypergeometric function

Submitter:  Patrick Alken <psa>
Submitted:  Mon 14 May 2018 09:41:03 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Operating System: 
Status:  None Assigned to:  None
Open/Closed:  Open Release: 

Discussion

Mon 10 Nov 2025 05:17:04 PM UTC, comment #1: 

The implementation recognizes negative integers only strictly upwards from -9
(this is a hard-coded limit in gsl_sf_hyperg_2F1_e), so negative integers
in the range -9 to -1 will get the usual "finite sum" treatment. The
others are forwarded to a function hyperg_2F1_luke() which is apparently
not dealing with this case. There is no implementation for larger negative integers...

R. J. Mathar <rjmathar>
Mon 14 May 2018 09:41:03 PM UTC, original submission:  

from kamran =dot= salehivaziri =at= epfl =dot= ch

Dear Sir or Madam,


Let me first thank you for your amazing package that is very well-written with a nice documentation.


I am using your package "gsl" for c++/c to calculate Integrals of Hypergeometric functions. I have trouble getting output for Hypergeometric function themselves.


To be precise your code gives error for the value of "gsl_sf_hyperg_2F1(-10, 2 , 0.5 , 0.5)".


I tried to change the components a little bit and I understood that your code works down to a=-10 but after that it gives an error. I also check from Python and Mathematica and there is a finite value for this function(0.0778324).


Would you please respond to my e-mail since I was spending two days to debug this and now I get to this point. ?

Patrick Alken <psa>
Group administrator

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by rjmathar (Posted a comment)
  • -email is unavailable- added by psa (Submitted the item)
  •  

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code