logmdigamma

0th

Percentile

Log Minus Digamma Function

The difference between the log and digamma functions.

Keywords
math
Usage
logmdigamma(x)
Arguments
x

numeric vector or array of positive values. Negative or zero values will return NA.

Details

digamma(x) is asymptotically equivalent to log(x). logmdigamma(x) computes log(x) - digamma(x) without subtractive cancellation for large x.

References

Abramowitz, M., and Stegun, I. A. (1970). Handbook of mathematical functions. Dover, New York.

See Also

digamma

Aliases
  • logmdigamma
Examples
# NOT RUN {
log(10^15) - digamma(10^15) # returns 0
logmdigamma(10^15) # returns value correct to 15 figures
# }
Documentation reproduced from package statmod, version 1.4.32, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.