If `e` is a rational constant, return it as `[numerator, denominator]` * (denominator > 0); otherwise `null`.
(e: Expression)
| 1448 | variable: string |
| 1449 | ): Expression { |
| 1450 | if (!isFunction(expr, 'Add')) return expr; |
| 1451 | |
| 1452 | const ce = expr.engine; |
| 1453 | const ops = expr.ops; |
| 1454 | if (ops.length === 0) return expr; |
| 1455 | |
| 1456 | // Find the sqrt term(s) in the expression |
| 1457 | let sqrtTerm: Expression | null = null; |
| 1458 | let sqrtIndex = -1; |
| 1459 | |
| 1460 | for (let i = 0; i < ops.length; i++) { |
| 1461 | const op = ops[i]; |
| 1462 | // Check for Sqrt(...) |
no test coverage detected