Generalized Hypergeometric Function
A numerical evaluator for the generalized hypergeometric function for complex arguments with large magnitudes using a direct summation of the Gauss series.
pFq isdefined by (borrowed from Maple):
pFq = sum(z^k / k! * product(pochhammer(n[i], k), i=1..p) / product(pochhammer(d[j], k), j=1..q), k=0..infinity )
The desired accuracy (number of digits) can be specified as a parameter.
This function is a translation from the original fortran77 source code written by W. F. Perger from the Michigan Technological University.
Cite As
Ben Barrowes (2026). Generalized Hypergeometric Function (https://ch.mathworks.com/matlabcentral/fileexchange/5616-generalized-hypergeometric-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Discrete Distributions > Hypergeometric Distribution >
Tags
Acknowledgements
Inspired: Generation of Random Variates
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Fixed backward compatibility problem. |
