Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Absolute value functionCosine function (Berikutnya)
Numeric functions

Arctangent of Y/X in the range -PI to PI

Daftar Isi

  • 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::tanfunction, or use the familiar relation:

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

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

    Portability issues: atan2 in perlport.

 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Absolute value functionCosine function (Berikutnya)