Documentation for sub atan2

Documentation for sub atan2, assembled from the following types:

class Cool

From Cool

(Cool) routine atan2

Defined as:

sub atan2(Numeric() $xNumeric() $y = 1e0)
method atan2($y = 1e0)

Coerces the arguments (including the invocant in the method form) to Numeric, and returns their two-argument arc-tangent in radians.

say atan2(3);               # OUTPUT: «1.24904577239825␤» 
say 3.atan2;                # OUTPUT: «1.24904577239825␤»