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

Function eqDelta

src/compute-engine/rubi/rubi-utils.ts:588–591  ·  view source on GitHub ↗

u − v for binary EqQ/NeQ, or just u for the unary form (compare to 0).

(args: Json[], ctx: Ctx)

Source from the content-addressed store, hash-verified

586 if (json === 'False') return false;
587 // SimplifyFlag and friends — not in steps mode
588 return fail(`bare symbol condition '${json}'`);
589 }
590 if (!Array.isArray(json)) return fail('non-predicate condition');
591 const [head, ...args] = json;
592 if (head === 'And') return args.every((a) => evalCondition(a, ctx));
593 if (head === 'Or') return args.some((a) => evalCondition(a, ctx));
594 if (head === 'Not') return !evalCondition(args[0], ctx);

Callers 1

rubi-utils.tsFile · 0.85

Calls 2

buildFunction · 0.70
subMethod · 0.65

Tested by

no test coverage detected