我需要在python中计算类型为bigfoat的变量的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的多个精确实现在gmpy2、mpmath和Python-FLINT中可用。我不知道trigamma的任何实现。在
免责声明:我维护
gmpy2
。在相关问题 更多 >
编程相关推荐