(n: number)
| 103 | * the odd Bernoulli numbers B₃, B₅, … vanish). |
| 104 | */ |
| 105 | export 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 | } |
no test coverage detected