factorialLn function

double factorialLn(
  1. num n
)

Returns the logarithm of the factorial based on the gammaLn function.

Implementation

double factorialLn(num n) => n < 0.0 ? double.nan : gammaLn(1.0 + n);