lstirling: Calculate the logarithm of a Stirling number of the first...

Description Usage Arguments Value References See Also Examples

View source: R/lstirling.R

Description

Returns an approximation of the logarithm of a Stirling number of the first kind. This is useful because for larger parameter values, these Stirling numbers can overflow the floating point range.

Usage

1
lstirling(n, m)

Arguments

n

The first parameter (subscript in the notation used in Temme 1993)

m

The second parameter (superscript in parentheses in the notation used in Temme 1993)

Value

The logarithm of the Stirling number of the first kind.

References

Temme, N.M. (1993) Studies in Applied Mathematics 89:233-243 (Equation 3.5)

See Also

'stirmat' for a direct Stirling number calculator

Examples

1
2
3
4
n <- 10
m <- 5
exp(lstirling(n, m))
# 267854.5

swainechen/hfufs documentation built on June 22, 2020, 7:02 a.m.