abs method

double abs()

Implementation

double abs() {
  return sqrt(real * real + imaginary * imaginary);
}