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

Function allExactPi

test/compute-engine/solve-domain.test.ts:341–348  ·  view source on GitHub ↗

True if every solution value is exact (a π-multiple or 0), not a float.

(expr: BoxedExpression)

Source from the content-addressed store, hash-verified

339 });
340});
341
342describe('SOLVE OVER A DOMAIN — periodic root-family expansion', () => {
343 /** Assert two ascending numeric lists agree within a small tolerance (CE's
344 * exact π-multiples numericize to the last ULP, not bit-identically to a
345 * JS `k*Math.PI/n`). */
346 function expectClose(actual: number[], expected: number[]): void {
347 expect(actual.length).toBe(expected.length);
348 for (let i = 0; i < actual.length; i++)
349 expect(actual[i]).toBeCloseTo(expected[i], 10);
350 }
351

Callers 1

Calls 1

evaluateMethod · 0.65

Tested by

no test coverage detected