Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save HYUNSEONG-KIM/a343ce51563307959e159a5c70621fd0 to your computer and use it in GitHub Desktop.
Save HYUNSEONG-KIM/a343ce51563307959e159a5c70621fd0 to your computer and use it in GitHub Desktop.
Gaussian Hypergeometric function for negative real values in python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HYUNSEONG-KIM
Copy link
Author

The error of 13th case of scipy function is precision issue of python. At least require E628 degree value is required in transform equation. However, double data type of python only support up E308. So using mpmath if there is large difference with Wolfram implementation.
One thing you have to be noticed is mpmath implmentation showing better result when abs(a) > abs(b) case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment