简体   繁体   English

是否存在计算digamma函数导数的函数?

[英]Is there a function calculating derivative of digamma function?

I want to calculate the derivative of digamma function in R. 我想计算R中的digamma函数的导数。

R has an existing function called digamma , but I cannot find a function for the derivative of digamma function. R有一个称为digamma的现有函数,但我找不到digamma函数的导数的函数。 Is it possible to write code for differentiated digamma function in R? 是否可以为R中的差分digamma函数编写代码?

Thanks. 谢谢。

Sure, it is called trigamma 当然,这叫做trigamma

q <- trigamma(3)

There is also psigamma : psigamma(x, deriv) (deriv >= 0) computes the deriv-th derivative of ψ(x). 还有psigamma :psigamma(x,deriv)(deriv> = 0)计算ψ(x)的导数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM