「cpp/numeric/math/sqrt」の版間の差分
提供: cppreference.com
細 (r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pl, pt, ru, zh) |
細 (Use {{lc}}. Update links. Various fixes.) |
||
2行: | 2行: | ||
{{cpp/title|sqrt}} | {{cpp/title|sqrt}} | ||
{{cpp/numeric/math/navbar}} | {{cpp/numeric/math/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{header | cmath}} |
− | {{ | + | {{| |
float sqrt( float arg ); | float sqrt( float arg ); | ||
}} | }} | ||
− | {{ | + | {{| |
double sqrt( double arg ); | double sqrt( double arg ); | ||
}} | }} | ||
− | {{ | + | {{| |
long double sqrt( long double arg ); | long double sqrt( long double arg ); | ||
}} | }} | ||
− | {{ | + | {{| sincec++11 | |
double sqrt( Integral arg ); | double sqrt( Integral arg ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
{{tr|{{tt|arg}}の平方根を計算.|Computes square root of {{tt|arg}}.}} | {{tr|{{tt|arg}}の平方根を計算.|Computes square root of {{tt|arg}}.}} | ||
===パラメータ=== | ===パラメータ=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| arg |{{tr| 浮動小数点または整数値| floating point or integer value}}}} |
− | {{ | + | {{end}} |
===値を返します=== | ===値を返します=== | ||
{{tr|{{tt|arg}}の平方根.|square root of {{tt|arg}}.}} | {{tr|{{tt|arg}}の平方根.|square root of {{tt|arg}}.}} | ||
− | {{tr|{{tt|arg}}が負の場合はドメイン·エラーが発生します。 {{ | + | {{tr|{{tt|arg}}が負の場合はドメイン·エラーが発生します。 {{|NAN}}はその場合に返されます.|Domain error occurs if {{tt|arg}} is negative. {{|NAN}} is returned in that case.}} |
===も参照してください=== | ===も参照してください=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/numeric/math/cbrt}} |
− | {{ | + | {{| cpp/numeric/math/pow}} |
− | {{ | + | {{| cpp/numeric/complex/sqrt}} |
− | {{ | + | {{| cpp/numeric/valarray/sqrt}} |
− | {{ | + | {{end}} |
[[de:cpp/numeric/math/sqrt]] | [[de:cpp/numeric/math/sqrt]] |
2013年7月2日 (火) 14:41時点における版
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
ヘッダ <cmath> で定義
|
||
float sqrt( float arg ); |
||
double sqrt( double arg ); |
||
long double sqrt( long double arg ); |
||
double sqrt( Integral arg ); |
(C++11以上) | |
arg
の平方根を計算.Original:
Computes square root 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 or integer value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
値を返します
arg
の平方根.Original:
square root 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
が負の場合はドメイン·エラーが発生します。 NANはその場合に返されます.Original:
Domain error occurs if
arg
is negative. 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.
も参照してください
(C++11)(C++11)(C++11) |
立方根 (3√x) を計算します (関数) |
(C++11)(C++11) |
x の y 乗 (xy) を計算します (関数) |
右半平面の範囲の複素数の平方根 (関数テンプレート) | |
valarray の各要素に関数 std::sqrt を適用します (関数テンプレート) |