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

Function walk

src/compute-engine/boxed-expression/solve.ts:1773–1780  ·  view source on GitHub ↗
(node: Expression)

Source from the content-addressed store, hash-verified

1771 * 3. Isolate remaining sqrt: f(x) - e² - g(x) = -2e√(g(x))
1772 * 4. Square again: (f(x) - e² - g(x))² = 4e²·g(x)
1773 * 5. Expand: polynomial equation in x
1774 * 6. Solve and validate roots against original equation
1775 *
1776 * Returns solutions for x, or null if pattern not detected.
1777 */
1778function solveTwoSqrtEquation(
1779 expr: Expression,
1780 variable: string,
1781 trace?: RuleSteps,
1782 stats?: RootStats
1783): Expression[] | null {

Callers 1

collectGeneratorsFunction · 0.70

Calls 4

isFunctionFunction · 0.90
hasMethod · 0.65
setMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected