Gauss hypergeometric function

Numerically compute real valued Gauss hypergeometric function, using Scipy c-source files

You are now following this Submission

Note: run make_hyp2f1.m to compile mex files first!

Accurately compute real valued Gauss hypergeometric funciton 2F1(a,b;c;d) using c source files from SciPy.

Much faster than the HYPERGEOM function from symbolic math toolbox. In some cases it is more accurate than HYPERGEOM as well.

Equivalent of scipy.special.hyp2f1()

Tested on a 64-bit windows 7 and 64-bit CentOS 6.3

Cite As

Siyi Deng (2026). Gauss hypergeometric function (https://nl.mathworks.com/matlabcentral/fileexchange/43865-gauss-hypergeometric-function), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: HyperGeometric2F1(a, b, z)

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0