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

Method candidatesFor

src/compute-engine/rubi/driver.ts:168–177  ·  view source on GitHub ↗
(operator: string)

Source from the content-addressed store, hash-verified

166// `(√(x+1)+√(1−x))⁻²`). Lever A iteratively substitutes `u = (a+b·x)^(1/k)` at
167// the innermost linear radical (keeping the produced rational's denominator
168// FACTORED for the bundled partial-fraction rules, the R26B lesson); Lever B
169// conjugate-rationalizes the sum-of-two-radicals power. Fail-closed with a
170// domain-aware D-check. A/B measures its Bondarenko effect; structurally inert
171// off-family (the tight `hasNestedRadicalCandidate` pre-filter).
172const NO_R31 = process.env.RUBI_NO_R31 !== undefined;
173// RUBI_NO_R32: disable the R32 Euler-substitution lever ("Lever C") for
174// √(quadratic)-nested radicals (a `√B` whose base contains a `√(a·x²+b·x+c)`,
175// `√(x+√(x²+1))`, Bondarenko #9). Lever C substitutes `t = √a·x + √Q` (Euler I,
176// a>0), rationalizing `√Q` and collapsing the outer radical to a √-of-linear the
177// existing Lever A then removes; it runs SECOND (after Lever A) in each iteration
178// of the nested-radical fallback loop. Under `RUBI_NO_R32=1` the pre-filter also
179// stops admitting the Euler-nested shape (clean A/B); structurally inert
180// off-family. A/B measures its Bondarenko effect.

Callers 1

intUncachedMethod · 0.95

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected