Ultra fast Gauss hypergeometric function
Version 1.0.0 (1.83 KB) by
ssl
This is the implementation of the Gauss hypergeometric function using series representation and suitable transformation formulas.
This implementation uses the series representation of the Gauss hypergeometric function
and uses transformations such that the argument of the series, z, is always in the range [0,0.5] and therefore it converges very fast. It is basically the implementation suggested by "https://www.math.ucla.edu/~mason/research/pearson_final.pdf" written by John Pearson, section 4.6 Transformation formulae, equations 4.16-4.20.
It is compatible with all versions of MATLAB (as long as it contains the cumprod() function which is basically version 2006a to this day), however, the test file uses the native hypergeom() function implemented by Mathworks for comparison, beware!
Cite As
ssl (2026). Ultra fast Gauss hypergeometric function (https://www.mathworks.com/matlabcentral/fileexchange/169306-ultra-fast-gauss-hypergeometric-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023b
Compatible with R2006a to R2024b
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
