1

I need to compute the scipy.special trigamma and digamma functions of a variable with type bigfloat in python but I get the following error message:

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'

I need to keep my variables as bigfloat for precision purposes. Does any body know how I can compute digamma and trigamma functions for such variables? Thanks.

4

1 回答 1

1

gmpy2mpmathPython-FLINT中提供了 digamma 的多种精度实现。我不知道 trigamma 的任何实现。

免责声明:我坚持gmpy2.

于 2016-08-02T04:47:50.570 回答