sqrt method

double sqrt([
  1. int exponent = 2
])

Returns sqrt of this.

The exponent is the number of times to square the number.

It is the same as pow(-exponent).

Implementation

double sqrt([int exponent = 2]) {
  return math.pow(this, 1 / exponent).toDouble();
}