Computes the Gauss hypergeometric function 2F1(a,b;c;z) and its derivative for real z, z<1 by integrating the defining differential equation using the Matlab differential equation solver ode15i.
If 2F1 is to be evaluated for many different z for constant parameters a, b and c, it is suggested to call the function only once and use the output to create a piecewise polynomial approximation of 2F1.
Robert Kohlleppel (2022). Gauss Hypergeometric Function (https://www.mathworks.com/matlabcentral/fileexchange/21444-gauss-hypergeometric-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Generation of Random Variates
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!