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

Function hasInertTrig

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

True if any node carries an INERT trig head (`sin`/`cos`/…). Underlies * Rubi's `InertTrigFreeQ` (the working-form purity test that gates many * Chapter-4 dispatch rules).

(e: Expression)

Source from the content-addressed store, hash-verified

2267 }
2268 const split = splitMonoFactor(u, x);
2269 if (split === null || split.rest === null) return null;
2270 const { scale, exp: mExp, rest } = split;
2271 const gt = genTrinomialPartsX(rest, x);
2272 if (gt !== null) {
2273 return {
2274 a: scale.mul(gt.a).evaluate(),
2275 b: scale.mul(gt.b).evaluate(),

Callers 1

rubi-utils.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected