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

Function solveSound

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

Source from the content-addressed store, hash-verified

381 valid++;
382 if (Math.abs(g - r) <= c.tol * (1 + Math.abs(r)) + 1e-9) ok++;
383 }
384 if (valid < minValid) return { v: 'inconclusive' };
385 if (ok < valid) return { v: 'wrong' };
386 if (c.op === 'factor' && /sqrt|√|abs|\|/i.test(res.text || '')) return { v: 'partial', note: 'non-polynomial form' };
387 return { v: 'correct' };
388}

Callers 1

wester.tsFile · 0.85

Calls 1

absMethod · 0.65

Tested by

no test coverage detected