8

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.

a06e
  • 18,594
  • 33
  • 93
  • 169
  • 1
    Did you manage to find a valid C version of that function? I'm still relying on the mpmath with python but I would like to have it in C! It seems very difficult to implement the `hypergeometric` module of mpmath in C! – linello Jun 25 '14 at 10:03
  • @linello Nothing. Now I am also in need of [Kummer's confluent for complex arguments](http://scicomp.stackexchange.com/q/20927/988), which doesn't appear to have a C/C++ implementation either. If you find any let me know! – a06e Oct 05 '15 at 13:50

2 Answers2

5

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.

Ted Pudlik
  • 665
  • 8
  • 26
2

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.

Community
  • 1
  • 1
pippin1289
  • 4,861
  • 2
  • 22
  • 37