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

Function selectFactors

src/compute-engine/rubi/rubi-utils.ts:3568–3581  ·  view source on GitHub ↗
(
  u: Expression,
  x: string,
  ce: ComputeEngine,
  free: boolean
)

Source from the content-addressed store, hash-verified

3566// FunctionOfExponential family (IntegrationUtilityFunctions.m): recognize when
3567// an integrand u is a function of a single F^v (F constant, v linear in x) and
3568// rewrite F^v → x, for the master exponential-substitution rule 2.3#97:
3569// Int[u] = v/D[v,x] · Subst[Int[FunctionOfExponentialFunction[u]/x, x], x, v]
3570// Rubi threads fluid $base$/$expon$/$exponFlag$; here the state is explicit.
3571// Hyperbolic heads count as exponentials (Sinh[w] ≡ (E^w−E^−w)/2), so the same
3572// machinery serves the Chapter-6 active-hyperbolic integrands.
3573// ---------------------------------------------------------------------------
3574
3575const HYPERBOLIC_HEADS = new Set([
3576 'Sinh',
3577 'Cosh',
3578 'Tanh',
3579 'Coth',
3580 'Sech',
3581 'Csch',
3582]);
3583
3584/** Does u contain a hyperbolic function head anywhere in its tree? Used by the

Callers 3

substTrigNodeFunction · 0.85
substFor3Function · 0.85
rubi-utils.tsFile · 0.85

Calls 2

hasMethod · 0.65
functionMethod · 0.65

Tested by

no test coverage detected