MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / zetaNegativeInteger

Function zetaNegativeInteger

src/compute-engine/numerics/bernoulli.ts:105–110  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

103 * the odd Bernoulli numbers B₃, B₅, … vanish).
104 */
105export function zetaNegativeInteger(n: number): [bigint, bigint] {
106 if (!Number.isInteger(n) || n < 1)
107 throw new RangeError(`zetaNegativeInteger: invalid index ${n}`);
108 const [num, den] = bernoulliRational(n + 1);
109 return reduce(-num, den * BigInt(n + 1));
110}

Callers 2

arithmetic.tsFile · 0.90

Calls 3

bernoulliRationalFunction · 0.85
reduceFunction · 0.70
isIntegerMethod · 0.45

Tested by

no test coverage detected