Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hypergeometric function

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.

like image 625
Luis Mendo Avatar asked Jul 05 '26 21:07

Luis Mendo


1 Answers

The Octave-forge GSL package will have hyperg_2F1 in the next release. See buildgsl_sf.sh

like image 78
Andy Avatar answered Jul 09 '26 16:07

Andy