Perl | atan2() Function
This function is used to calculate arctangent of Y/X in the range -PI to PI. Syntax: atan2(Y, X) Parameters: Y and X which are axis values Returns: Function returns arctangent of Y/X in the range -PI to PI. Example1: #!/usr/bin/perl # Assigning values to X and y $Y = 45; $X = 70; # Calling atan2() f