std::acos
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
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.
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.
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.
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
[編集] 参照
アークサイン(arcsin(x))を計算します Original: computes arc sine (arcsin(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
アークタンジェント(arctan(x))を計算します Original: computes arc tangent (arctan(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
象限を決定するために記号を使用するアークタンジェント、 Original: arc tangent, using signs to determine quadrants The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
計算するコサイン(cos(x)) Original: computes cosine (cos(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
(C++11) |
複素数の逆余弦(arccos(z))を計算します Original: computes arc cosine of a complex number (arccos(z)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |
valarrayの各要素に関数を適用しstd::acos Original: applies the function std::acos to each element of valarray The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |