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

Function expandTrigReduce

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

ExpandTrigReduce[u,x] (2-arg) — the exponential-expansion of u (see the * section comment). Returns a sum the linearity prelude integrates termwise.

(ce: ComputeEngine, u: Expression)

Source from the content-addressed store, hash-verified

3709 const p = safeSimplify(
3710 G.ln()
3711 .mul(coeffX(w, x, 1))
3712 .div(st.base!.ln().mul(coeffX(st.expon!, x, 1)))
3713 );
3714 const xp = ce.symbol(x).pow(p);
3715 // G^(const of w) · x^p when $expon$ has no constant term, else x^p
3716 return zeroQ(coeffX(st.expon!, x, 0))

Callers 1

rubi-utils.tsFile · 0.85

Calls 2

deepExpandFunction · 0.85
hyperbolicToExpFunction · 0.85

Tested by

no test coverage detected