(u: Expression)
| 1342 | } |
| 1343 | |
| 1344 | /** literal principal root u^(1/n) (Rubi NthRoot) */ |
| 1345 | function nthRoot(u: Expression, n: number): Expression { |
| 1346 | const ce = u.engine; |
| 1347 | if (n === 1) return u; |
| 1348 | return u.pow(ce.expr(['Rational', 1, n]) as Expression).evaluate(); |
| 1349 | } |
| 1350 |
no test coverage detected