FunctionOfTrig[u, x]: the common linear trig argument, or the False symbol.
( ce: ComputeEngine, u: Expression, x: string )
| 3164 | |
| 3165 | /** `a + b·trig[linear arg]` (x-free constant part `a`, single trig term) → |
| 3166 | * `{head, a, b, arg}`, else null. */ |
| 3167 | function 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)) { |
no test coverage detected