您可以使用该PyCall模块mpmath从Python(以前是SymPy的一部分sympy.mpmath)使用:
# import mpmath module
@pyimport mpmath as mpmath
x = mpmath.hyp3f2(1,2,3,4,5, 0.5)
# then you will need to convert this to a float
Float64(x)
Run Code Online (Sandbox Code Playgroud)
日期:
1.189874754256423
Run Code Online (Sandbox Code Playgroud)
Docs mpmath和可用的超几何函数在这里:http://docs.sympy.org/0.7.1/modules/mpmath/functions/hypergeometric.html
(如果你没有mpmath安装,你可以从shell安装pip :)
pip install mpmath
Run Code Online (Sandbox Code Playgroud)