abs method

double abs()

Computes the magnitude (absolute value) of the complex number.

Implementation

double abs() => math.sqrt(_real * _real + _imag * _imag);