atan,atanl
提供:RAD Studio (日本語)
math.h:インデックス への移動
ヘッダーファイル
math.h
カテゴリ
演算ルーチン
プロトタイプ
double atan(double x);
long double atanl(long double x);
説明
アークタンジェントを計算します。
atan は,入力値のアークタンジェントを計算します。
atanl は long double バージョンです。long double 引数を受け取り,long double の結果を返します。
戻り値
実引数の atan および atanl は,-pi/2 ~ pi/2 の範囲の値を返します。これらの関数のエラー処理は,_matherr および _matherrl 関数を使って変更できます。
例
#include <stdio.h> #include <math.h> int main(void) { double result; double x = 0.5; result = atan(x); printf("The arc tangent of %lf is %lf\n", x, result); return(0); }
移植性
| POSIX | Win32 | ANSI C | ANSI C++ | |
|---|---|---|---|---|
|
atan |
+ |
+ |
+ |
+ |
|
atanl |
+ |
+ |
+ |