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

Function asEquation

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

The equation `f = 0`, with any internal `_x` unknown displayed as `x`.

(f: Expression, x: string)

Source from the content-addressed store, hash-verified

87 * design, decision 7). Resolves a *decidable* guard against evaluation + the
88 * assumption store:
89 * - guard evaluates to `True` → the bare `root` (guard discharged);
90 * - guard evaluates to `False` → `null` (the caller drops the root — the
91 * solution-set pruning contract, decision 8);
92 * - otherwise (undecidable) → `When(root, guard)`, retained until the
93 * guard becomes decidable.
94 *
95 * Numeric ratios therefore keep today's behavior exactly: the trig rules'
96 * conditions already refuse to fire on a decidable-False ratio, so a numeric

Callers 8

solveSingleSqrtEquationFunction · 0.85
solveTwoSqrtEquationCoreFunction · 0.85
solveNestedSqrtEquationFunction · 0.85
solveByZeroProductFunction · 0.85
findUnivariateRootsFunction · 0.85
traceMatchesFunction · 0.85

Calls 4

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

Tested by

no test coverage detected