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

Function functionOfTrig

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

FunctionOfTrig[u, x]: the common linear trig argument, or the False symbol.

(
  ce: ComputeEngine,
  u: Expression,
  x: string
)

Source from the content-addressed store, hash-verified

3164
3165/** `a + b·trig[linear arg]` (x-free constant part `a`, single trig term) →
3166 * `{head, a, b, arg}`, else null. */
3167function trigBinomParts(
3168 ce: ComputeEngine,
3169 e: Expression,
3170 x: string
3171): TrigBinom | null {
3172 if (e.operator !== 'Add' || !e.ops) return null;
3173 let a: Expression = ce.Zero;
3174 let mono: TrigMono | null = null;
3175 for (const t of e.ops) {
3176 if (!t.has(x)) {

Callers 1

rubi-utils.tsFile · 0.85

Calls 3

fotAuxFunction · 0.85
activateTrigFunction · 0.85
symbolMethod · 0.65

Tested by

no test coverage detected