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

Function traceStep

src/compute-engine/boxed-expression/solve.ts:80–86  ·  view source on GitHub ↗

Record one narrative step. `value` is the equation state after the step.

(
  trace: RuleSteps | undefined,
  because: string,
  value: Expression
)

Source from the content-addressed store, hash-verified

78 const val = numericValue(ratio);
79 if (val === undefined) return undefined;
80 if (typeof val === 'number') return val;
81 if (val.im !== 0) return undefined;
82 return val.re;
83}
84
85/**
86 * Producer-side chokepoint for a validity-guarded root (conditional-values
87 * design, decision 7). Resolves a *decidable* guard against evaluation + the
88 * assumption store:
89 * - guard evaluates to `True` → the bare `root` (guard discharged);

Callers 12

solveSingleSqrtEquationFunction · 0.85
solveTwoSqrtEquationCoreFunction · 0.85
solveNestedSqrtEquationFunction · 0.85
solveByZeroProductFunction · 0.85
solveInverseTrigEquationFunction · 0.85
findUnivariateRootsFunction · 0.85
traceMatchesFunction · 0.85
validateRootsFunction · 0.85
filterRootsByTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected