root function

Expr root(
  1. Expr x,
  2. Expr n
)

Get the algebraic nth root of x.

This is equivalent to pow(x, 1 / n).

Implementation

Expr root(Expr x, Expr n) => pow(x, div(ratFrom(1), n));