method polar
1 | class Complex |
1.1 | (Complex) method polar |
Documentation for method polar
assembled from the following types:
class Complex
From Complex
(Complex) method polar
Defined as:
method polar(Complex: --> Positional)
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)»