How to use the jstat.jStat.erf function in jstat

To help you get started, we’ve selected a few jstat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zhilu-nanjing / financial-cell / src / calc / expression_fn / lib / engineering.js View on Github external
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);
  }
};
github zhilu-nanjing / financial-cell / src / calc / expression_fn / lib / engineering.js View on Github external
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);
  }
};