Documentation for method polar

Documentation for method polar, assembled from the following types:

class Complex

From Complex

(Complex) method polar

Defined as:

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)␤»