ActiveState homepage
docs.activestate.com
ActivePerl 5.32 Documentation
  • Get ActivePerl
      Release notes Windows installation Linux Installaton macOS Installation License
  • Get Started
      Windows Perl 5.32 docs
  • Contact Us

atan2 - perldoc.perl.org
Home  > Language reference > Functions > atan2
Perl 5 version 32.0 documentation

atan2

Perl functions A-Z | Perl functions by category | The 'perlfunc' manpage
  • atan2 Y,X

    Returns the arctangent of Y/X in the range -PI to PI.

    For the tangent operation, you may use the Math::Trig::tan function, or use the familiar relation:

    1. sub tan { sin($_[0]) / cos($_[0]) }

    The return value for atan2(0,0) is implementation-defined; consult your atan2(3) manpage for more information.

    Portability issues: atan2 in perlport.

Documentation built with Hugo using the Material theme.
ActiveState Platform   Downloads   Community   Code Recipes  
© 2020 ActiveState Software Inc. All rights reserved. Trademarks. Privacy Policy.