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

Function relErr

test/compute-engine/distributions.test.ts:18–20  ·  view source on GitHub ↗
(got: number, want: number)

Source from the content-addressed store, hash-verified

16// I=lambda a,b,x: mpmath.betainc(a,b,0,x,regularized=True); print(...)"
17
18function relErr(got: number, want: number): number {
19 return Math.abs(got - want) / Math.abs(want);
20}
21
22describe('regularized incomplete gamma/beta kernels', () => {
23 describe('machine gammaP / gammaQ', () => {

Callers 1

Calls 1

absMethod · 0.65

Tested by

no test coverage detected