HyperGeometric2F1(a​, b, z)

Vectorized calculation of the gaussian hypergeometric function with p=2 and q=1.

You are now following this Submission

The whole file is ported from C using this submission:
http://www.mathworks.com/matlabcentral/fileexchange/43865-gauss-hypergeometric-function
The idea is to provide a file that doesent need to be compiled. Additionally I vectorized the calculation to improve speed significantly. An example usage is given in the header of the file. Since I just translated the function from C to Matlab, I cannot guarantee that the results are always correct but I tested it using many different inputs. If you find any errors please write a comment.

Cite As

Vincent Wilms (2026). HyperGeometric2F1(a, b, z) (https://www.mathworks.com/matlabcentral/fileexchange/56344-hypergeometric2f1-a-b-z), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Gauss hypergeometric function

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

removed dependency from Matrix.InsertAt1D

1.0.0.0