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

Function engine

test/compute-engine/solve-diophantine.test.ts:434–441  ·  view source on GitHub ↗
(tuple: BoxedExpression, tv: number, t1: number, t2: number)

Source from the content-addressed store, hash-verified

432 ])
433 .evaluate();
434 const engine = (tuple: BoxedExpression, tv: number, t1: number, t2: number) => {
435 const sub = { t: ce.number(tv), t_1: ce.number(t1), t_2: ce.number(t2) };
436 return [
437 tuple.op1.subs(sub).evaluate().re,
438 tuple.op2.subs(sub).evaluate().re,
439 tuple.op3.subs(sub).evaluate().re,
440 ];
441 };
442 for (const [tv, t1, t2] of [
443 [1, 2, 1],
444 [2, 3, 1],

Callers 1

Calls 3

numberMethod · 0.65
evaluateMethod · 0.65
subsMethod · 0.65

Tested by

no test coverage detected