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.
Ben Barrowes (2023). Generalized Hypergeometric Function (https://www.mathworks.com/matlabcentral/fileexchange/5616-generalized-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!