O'Reilly logo

Learning AWK Programming by Shiwang Kalkhanda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The atan2 (x, y) function 

The atan2 (x,y) function returns the arc tangent of x/y in radians. It is similar to the arc tangent, except that the signs of both arguments are used to determine the quadrant of the result, which is expressed in radians. The following code block shows an example of the  atan2 function:

$ awk 'BEGIN { print "atan2(45,30) = ",atan2(45,30)}'

The output of the execution of the previous code is as follows:

atan2(45,30) =  0.982794

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required