Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python中bigfloat变量的trigamma和digamma函数_Python_Derivative_Gamma Function_Bigfloat - Fatal编程技术网

python中bigfloat变量的trigamma和digamma函数

python中bigfloat变量的trigamma和digamma函数,python,derivative,gamma-function,bigfloat,Python,Derivative,Gamma Function,Bigfloat,我需要计算python中bigfloat类型的变量的scipy.specialtrigamma和digamma函数,但我得到以下错误消息: TypeError: ufunc 'psi' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' 为了精确起见,我需要将变量保持为bi

我需要计算python中bigfloat类型的变量的
scipy.special
trigamma和digamma函数,但我得到以下错误消息:

TypeError: ufunc 'psi' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
为了精确起见,我需要将变量保持为bigfloat。 有人知道我如何计算这些变量的digamma和trigamma函数吗?
谢谢。

和中提供了digamma的多精度实现。我不知道trigamma的任何实现


免责声明:我坚持认为
gmpy2

trigamma是polygamma的特例