python中bigfoat变量的trigamma和digamma函数

2024-09-27 07:29:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要在python中计算类型为bigfoat的变量的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'

为了精确起见,我需要将变量保持为bigfloat。 有人知道如何计算这些变量的digamma和trigamma函数吗? 谢谢。在


Tags: theto函数消息类型错误notscipy

热门问题