sqrt method

Complex sqrt()

Computes the square root of this complex number.

Implementation

Complex sqrt() {
  final r = abs(), s = this + r;
  return s / s.abs() * r.sqrt();
}