2026a
# trigamma
trigamma函数
函数库: TyMath
# 语法
Y = trigamma(x)
# 说明
Y = trigamma(x) 计算 x 的 trigamma 函数,等效于 polygamma(1,x)。 示例
# 示例
计算trigamma函数
计算trigamma函数
using TyMath
Y1 = trigamma(2)
Y1 = 0.6449340668482265
检查结果是否等于
Y2 = pi^2/6 - 1
Y2 = 0.6449340668482264
# 输入参数
x-输入标量 | 向量 | 矩阵 | 多维数组
输入,指定为标量、向量、矩阵或多维数组
数据类型: Int64 | Int32 | Int16 | Int128 | Float64 | Float32 | Float16 | UInt8 | UInt16 | UInt32 | UInt64 | UInt128 | Complex
# 详细信息
trigamma函数
trigamma 函数是 gamma 函数的对数的二阶导数:
# 参考
[1] Abramowitz, M. and I. A. Stegun, Handbook of Mathematical Functions, Dover Publications, 1965, Sections 6.3 and 6.4.