Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementation of generalized hypergeometric function pFq [closed]

Is there an implementation callable from C or C++ that allows the evaluation of the generalized hypergeometric function pFq(a1,...,ap; b1,...,bp; x)?

I tried GSL and Boost, but I don't think the generalized function is available in either of those libraries.

like image 983
becko Avatar asked Jun 13 '14 21:06

becko


2 Answers

I believe the Arb library, a C library for arbitrary-precision floating-point ball arithmetic developed by the creator of mpmath, now provides an implementation.

like image 176
Ted Pudlik Avatar answered Oct 21 '22 12:10

Ted Pudlik


I would suggest using this python library for the functions you need. It seems like it has it.

The trick however is you need to be able to call a python script from C++. For that you can use a boost component.

This seems like the easiest solution, even if it is possibly inefficient.

like image 20
pippin1289 Avatar answered Oct 21 '22 13:10

pippin1289