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

Function sg

benchmarks/audit/wester.ts:428–437  ·  view source on GitHub ↗
(res: any)

Source from the content-addressed store, hash-verified

426 : (against.length && !covers(res.roots || [], against)) ? { v: 'partial', note: `${(res.roots || []).length}/${against.length} roots` }
427 : { v: 'correct' };
428 ceV = finalize(solveSound(ceRes), ceRes, refRoots); rfV = finalize(solveSound(rfRes), rfRes, refRoots);
429 syV = finalize(solveSound(syRes), syRes, refRoots);
430 woV = solveSound(woRes); if (woV.v === 'solved') woV = { v: 'correct' };
431 } else if (c.op === 'gcd') {
432 const st = (res: any) => !res ? { v: 'na' } : res.status === 'error' ? { v: 'error', note: res.error } : gcdSolved(res) ? { v: 'correct' } : { v: 'unsolved' };
433 ceV = st(ceRes); rfV = st(rfRes); syV = st(syRes); woV = st(woRes);
434 if (gcdSolved(ceRes) && gcdSolved(syRes) && !scalarMultiple(ceRes.values, syRes.values)) { ceV = { v: 'disagree' }; syV = { v: 'disagree' }; }
435 if (gcdSolved(rfRes) && gcdSolved(syRes) && !scalarMultiple(rfRes!.values, syRes.values)) rfV = { v: 'disagree' };
436 } else if (AGREE.has(c.op)) {
437 // A finite `.N()` value is NOT, by itself, correctness — that is exactly
438 // how the wrong-definite-integral class (P0-1) stayed invisible
439 // (CORRECTNESS_FINDINGS #27). When a trustworthy numeric reference exists
440 // (defint: composite Simpson of the integrand; limit: near-point estimate,

Callers 1

wester.tsFile · 0.85

Calls 2

solvedFunction · 0.70
absMethod · 0.65

Tested by

no test coverage detected