Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.GAMMALN.PRECISE = function(x) {
if (arguments.length !== 1) {
return Error(ERROR_NA);
}
if (x <= 0) {
return Error(ERROR_NUM);
}
if (typeof x !== 'number') {
return Error(ERROR_VALUE);
}
return jStat.gammaln(x);
};
export function GAMMALN(number) {
number = parseNumber(number);
if (number instanceof Error) {
return number;
}
if (number <= 0) {
return Error(ERROR_NUM)
}
return jStat.gammaln(number);
};