Translations of this page?:

atan2

文法:

    #include <cmath>
    double atan2( double y, double x );

atan2()関数は、y/xのアークタンジェントの値を計算します。引数の符号を利用して、象限もきちんと計算されます。返り値の範囲は[-π, π]です。関数に渡す引数の順番に注意してください。

C++では、以下のオーバーロード版も提供されます:

    #include <cmath>
    float atan2( float y, float x ); // C99のatan2f()と同じです
    long double atan2( long double y, long double x ); // C99のatan2l()と同じです

関連トピック: acos, asin, atan, cos, cosh, sin, sinh, tan, tanh

 
• • • SitemapRecent changesRSScc