In Complex§

See primary documentation in context for method polar

method polar(Complex:D: --> Positional:D)

Returns a two-element list of the polar coordinates for this value, i.e. magnitude and angle in radians.

say (10+7i).polar# OUTPUT: «(12.2065556157337 0.610725964389209)␤»