public magnitude() as Double
Returns the magnitude (or absolute value) of the complex number.
The magnitude of the complex number. Uses a scaled hypotenuse calculation instead of squaring the components.
c = Complex<>(3, 4) print(c.magnitude()) # Output: 5