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

Function isInert

test/compute-engine/solve-diophantine.test.ts:24–26  ·  view source on GitHub ↗

True if the `Solve` expression stayed unevaluated (undecided / inert).

(expr: BoxedExpression)

Source from the content-addressed store, hash-verified

22
23/** True if the `Solve` expression stayed unevaluated (undecided / inert). */
24function isInert(expr: BoxedExpression): boolean {
25 return expr.evaluate().operator === 'Solve';
26}
27
28/** Brute-force the integer solutions of a two-unknown equation over a box, as a
29 * lexicographically sorted array — the oracle the symbolic path must match. */

Callers 1

Calls 1

evaluateMethod · 0.65

Tested by

no test coverage detected