Octave doesn't seem to have a function to compute the generalized hypergeometric function pFq, or its simpler particular case 2F1:
>> help hypergeom
error: help: the 'hypergeom' function belongs to the symbolic package from Octave
Forge but has not yet been implemented.
Is there some well-known method or some function available in Matlab/Octave for computing pFq or 2F1? Ideally I would like something similar to Matlab's hypergeom
, but not necessarily symbolic. It doesn't need to be particularly fast.
Applying the definition in terms of an infinite sum doesn't seem to be a good idea, because it may be numerically unstable.