klyn.math.Complex.magnitude
method
public magnitude() as Double
Description

Returns the magnitude (or absolute value) of the complex number.

Returns

The magnitude of the complex number. Uses a scaled hypotenuse calculation instead of squaring the components.

Example
c = Complex<>(3, 4)
print(c.magnitude())  # Output: 5