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

Function nthRoot

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

literal principal root u^(1/n) (Rubi NthRoot)

(u: Expression, n: number)

Source from the content-addressed store, hash-verified

1275 u.ops.filter((t) => !t.has(x)).length === u.ops.length - 1 &&
1276 u.ops.some((t) => isBX(t))
1277 );
1278}
1279
1280function monomialQ(u: Expression, ctx: Ctx): boolean {
1281 const x = ctx.x;
1282 if (u.symbol === x) return true;
1283 if (u.operator === 'Power' && u.ops)
1284 return u.ops[0].symbol === x && !u.ops[1].has(x);

Callers 2

rtAuxFunction · 0.70
rtAuxBodyFunction · 0.70

Calls 3

evaluateMethod · 0.65
powMethod · 0.65
exprMethod · 0.65

Tested by

no test coverage detected