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

Function rootsAsEquations

src/compute-engine/boxed-expression/solve.ts:98–110  ·  view source on GitHub ↗
(
  ce: ComputeEngine,
  x: string,
  roots: ReadonlyArray<Expression>
)

Source from the content-addressed store, hash-verified

96 * conditions already refuse to fire on a decidable-False ratio, so a numeric
97 * ratio reaching here has a `True` guard and collapses to the bare root.
98 *
99 * Thin alias over the shared `conditionalValue` chokepoint
100 * (`boxed-expression/conditional-value.ts`), which Sum/Integrate now also use.
101 */
102function conditionalRoot(
103 ce: ComputeEngine,
104 root: Expression,
105 guard: Expression
106): Expression | null {
107 return conditionalValue(ce, root, guard);
108}
109
110//
111// ── Solve trace ─────────────────────────────────────────────────────
112//
113// `expr.explain('solve')` threads an optional `RuleSteps` accumulator

Callers 10

explainSolveFunction · 0.90
solveTwoSqrtEquationCoreFunction · 0.85
solveNestedSqrtEquationFunction · 0.85
findUnivariateRootsFunction · 0.85
traceMatchesFunction · 0.85
validateRootsFunction · 0.85
filterRootsByTypeFunction · 0.85

Calls 5

mapMethod · 0.65
functionMethod · 0.65
symbolMethod · 0.65
hasMethod · 0.65
subsMethod · 0.65

Tested by

no test coverage detected