Logarithm of the absolute value of the binomial coefficient. Equivalent to R's lchoose().
Takes single numbers: log(abs(choose(n, k))), computed without overflow.
Edge cases where R differs from the mathematical value, followed by default (rCompatible: false
returns the mathematical value instead): n within 1e-9 max(1, |n|) of an integer is treated as that
integer (for k >= 2; for n < 0 the tolerance is relative to k - 1 - n); lchoose(n, Infinity) is -Infinity for n >= 0 (otherwise NaN); lchoose(±Infinity, k)
is NaN for k >= 2 (Infinity for k = 1).
Logarithm of the absolute value of the binomial coefficient. Equivalent to R's
lchoose(). Takes single numbers:log(abs(choose(n, k))), computed without overflow.Edge cases where R differs from the mathematical value, followed by default (
rCompatible: falsereturns the mathematical value instead):nwithin 1e-9 max(1, |n|) of an integer is treated as that integer (fork >= 2; forn < 0the tolerance is relative tok - 1 - n);lchoose(n, Infinity)is-Infinityforn >= 0(otherwiseNaN);lchoose(±Infinity, k)isNaNfork >= 2(Infinityfork = 1).