Generalized Hypergeometric Function

Calculates the Generalized Hypergeometric Function at the desired accuracy.

You are now following this Submission

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://uk.mathworks.com/matlabcentral/fileexchange/5616-generalized-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

Fixed backward compatibility problem.