magnitude property

double magnitude

Implementation

double get magnitude {
  return math.sqrt(real * real + imaginary * imaginary).abs();
}