Take a complex number and returns quadrature, which is (length, arc-length from real axis)

Arc-length is calculated as $$|z| \arg(z)$$.

Parameters

z (number or array_like) – A complex number or sequence of complex numbers

Returns

• mag (array like or scalar) – magnitude (length)

• arc_length (array like or scalar) – arc-length from real axis: angle*magnitude