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

Function rtExpr

src/compute-engine/rubi/rubi-utils.ts:1266–1274  ·  view source on GitHub ↗

Rt[u, n] = RtAux[TogetherSimplify[u], n] — Rubi's canonical n-th root. * RtAux DISTRIBUTES the root over products/quotients and pairs sign flips * with negative-form sum factors. This composition is branch-unsound in * general; it is exactly Mathematica's principal-branch rendering, which * Rubi

(u: Expression, n: number | Expression)

Source from the content-addressed store, hash-verified

1264 t.operator === 'Multiply' &&
1265 !!t.ops &&
1266 t.ops.filter((o) => o.symbol === x).length === 1 &&
1267 t.ops.every((o) => o.symbol === x || !o.has(x))
1268 );
1269 };
1270 if (!u.has(x)) return false;
1271 if (isBX(u)) return true;
1272 return (
1273 u.operator === 'Add' &&
1274 !!u.ops &&
1275 u.ops.filter((t) => !t.has(x)).length === u.ops.length - 1 &&
1276 u.ops.some((t) => isBX(t))
1277 );

Callers 4

pseudoBinomialPartsXFunction · 0.85
niceSqrtAuxFunction · 0.85
simplerSqrtQFunction · 0.85
rubi-utils.tsFile · 0.85

Calls 8

realNumFunction · 0.85
safeSimplifyFunction · 0.85
rtAuxFunction · 0.85
numberMethod · 0.65
evaluateMethod · 0.65
powMethod · 0.65
divMethod · 0.65
isIntegerMethod · 0.45

Tested by

no test coverage detected