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

Function hasSeen

src/compute-engine/boxed-expression/simplify.ts:104–105  ·  view source on GitHub ↗
(x: Expression)

Source from the content-addressed store, hash-verified

102 // the cheap `unknowns`/operator gates) so it runs only on fold candidates.
103
104 // If purely numeric (no unknowns), evaluate the whole expression.
105 if (
106 expr.unknowns.length === 0 &&
107 BASIC_ARITHMETIC.includes(expr.operator) &&
108 !hasAssignedVariable(expr)

Callers 1

simplifyFunction · 0.85

Calls 1

isSameMethod · 0.65

Tested by

no test coverage detected