(ce: ComputeEngine, e: Expression)
| 2423 | |
| 2424 | /** Rubi AlgebraicFunctionQ — u is an algebraic function of x */ |
| 2425 | function algebraicFnQ(u: Expression, x: string, flag: boolean): boolean { |
| 2426 | if (!u.ops || !u.has(x)) return true; |
| 2427 | switch (u.operator) { |
| 2428 | case 'Power': { |
| 2429 | const e = u.ops[1]; |
| 2430 | if (isLiteralRational(e.evaluate()) || (flag && !e.has(x))) |