名前空間
変種

std::acos

提供: cppreference.com
2012年11月3日 (土) 06:24時点におけるP12bot (トーク | 投稿記録)による版 (r2.7.3) (ロボットによる 追加: de, en, es, it, ru 除去: ja)

<metanoindex/>

 
 
 
一般的な数学関数
関数
基本的な演算
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
指数関数
(C++11)
(C++11)
(C++11)
(C++11)
冪関数
(C++11)
(C++11)
三角関数と双曲線関数
(C++11)
(C++11)
(C++11)
誤差関数とガンマ関数
(C++11)
(C++11)
(C++11)
(C++11)
最も近い整数
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
浮動小数点操作関数
(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)
分類および比較
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
マクロ定数
(C++11)(C++11)(C++11)(C++11)(C++11)
 
Defined in header <cmath>
float acos( float arg );
double acos( double arg );
long double acos( long double arg );
double acos( Integral arg );
(C++11以上)
argの逆余弦を計算します
Original:
Computes arc cosine of arg
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

パラメータ

arg -
浮動小数点値
Original:
floating point value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

値を返します

argラジアンの範囲のラジアンで表わした[0; π]のアークコサイン.
Original:
Arc cosine of arg in radians in the range of [0; π] radians.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
argが範囲[-1.0; 1.0]外にある場合、ドメインエラーが発生します。 NANはその場合に返されます.
Original:
Domain error occurs if arg is outside the range [-1.0; 1.0]. NAN is returned in that case.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

#include <cmath>
#include <iostream>

int main()
{
    std::cout << "The number pi is " << std::acos(-1) << '\n';
}

出力:

The number pi is 3.14159

も参照してください

テンプレート:cpp/numeric/math/dcl list asinテンプレート:cpp/numeric/math/dcl list atanテンプレート:cpp/numeric/math/dcl list atan2テンプレート:cpp/numeric/math/dcl list cosテンプレート:cpp/numeric/complex/dcl list acosテンプレート:cpp/numeric/valarray/dcl list acos