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.
The Octave-forge GSL package will have hyperg_2F1 in the next release. See buildgsl_sf.sh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With