Root.fromExpr constructor

Root.fromExpr(
  1. Number n,
  2. Expression arg
)

Creates the n-th root of arg where n is a Number literal.

Implementation

Root.fromExpr(Number n, Expression arg) : super._unary('nrt', arg) {
  this.n = n.getConstantValue().toInt();
}