Gaussian Hypergeometric Function

Computes gaussian hypergeometric function using a series expansion.

You are now following this Submission

HYPERGEOMETRIC2F1 Computes a hypergeometric function using the series expansion:

f(a,b;c;x)=
1 + [ab/1!c]x + [a(a+1)b(b+1)/2!c(c+1)]x^2 +[a(a+1)(a+2)b(b+1)(b+2)/3!c(c+1)(c+2)]x^3 + ...

This function solves the Gaussian Hypergeometric Differential Equation:

x(1-x)y'' + {c-(a+b+1)x}y' - aby = 0

Cite As

Diego Garcia (2026). Gaussian Hypergeometric Function (https://in.mathworks.com/matlabcentral/fileexchange/1844-gaussian-hypergeometric-function), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Generation of Random Variates

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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