Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function ERF(lower_bound, upper_bound) {
lower_bound = parseNumber(lower_bound);
if (anyIsError(lower_bound, upper_bound)) {
return Error(ERROR_VALUE);
}
if (upper_bound === undefined) {
return jStat.erf(lower_bound)
} else {
return jStat.erf(upper_bound) - jStat.erf(lower_bound);
}
};
export function ERF(lower_bound, upper_bound) {
lower_bound = parseNumber(lower_bound);
if (anyIsError(lower_bound, upper_bound)) {
return Error(ERROR_VALUE);
}
if (upper_bound === undefined) {
return jStat.erf(lower_bound)
} else {
return jStat.erf(upper_bound) - jStat.erf(lower_bound);
}
};