名前空間
変種
操作

hypot

提供: cppreference.com
< c‎ | numeric‎ | math

 
 
 
一般的な数学関数
機能します
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
基本操作
Original:
Basic operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
remainder(C99)
remquo(C99)
fma(C99)
fmax(C99)
fmin(C99)
fdim(C99)
nan
nanf
nanl
(C99)
(C99)
(C99)
指数関数
Original:
Exponential functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
exp
exp2(C99)
expm1(C99)
log
log10
log1p(C99)
log2(C99)
電源機能
Original:
Power functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sqrt
cbrt(C99)
hypot(C99)
pow
三角関数や双曲線関数
Original:
Trigonometric and hyperbolic functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sinh
cosh
tanh
asinh(C99)
acosh(C99)
atanh(C99)
エラーおよびガンマ関数
Original:
Error and gamma functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
erf(C99)
erfc(C99)
lgamma(C99)
tgamma(C99)
最も近い整数の浮動小数点演算
Original:
Nearest integer floating point operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ceil
floor
round
lround
llround
(C99)
(C99)
(C99)
trunc(C99)
nearbyint(C99)
rint
lrint
llrint
(C99)
(C99)
(C99)
点操作関数に浮かぶ
Original:
Floating point manipulation functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ldexp
scalbn
scalbln
(C99)
(C99)
ilogb(C99)
logb(C99)
分類
Original:
Classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fpclassify(C99)
isfinite(C99)
isinf(C99)
isnan(C99)
isnormal(C99)
signbit(C99)
マクロ定数
Original:
Macro constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Defined in header <math.h>
float       hypotf( float x, float y );
double      hypot( double x, double y );
long double hypotl( long double x, long double y );
計算の中間段階での過度のオーバーフローまたはアンダーフローが発生することなく、xyの二乗和の平方根を計算します。これは、長さの辺をもつ直角三角形の斜辺の長さxy、または起点(x,y)、または複素数(0,0)の大きさから点x+iyの距離
Original:
Computes the square root of the sum of the squares of x and y, without undue overflow or underflow at intermediate stages of the computation. This is the length of the hypotenuse of a right-angled triangle with sides of length x and y, or the distance of the point (x,y) from the origin (0,0), or the magnitude of a complex number x+iy
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

x -
浮動小数点値
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.
y -
浮動小数点値
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.

[編集] 値を返します

直角三角形の斜辺、x2
+y2
.
Original:
The hypotenuse of a right-angled triangle, x2
+y2
.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 例外

結果がオーバーフローした場合は、範囲エラーが発生する可能性があり、FE_OVERFLOWが発生する場合があります.
Original:
If the result overflows, a range error may occur and FE_OVERFLOW may be raised.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
結果が非正規の場合は、アンダーフローエラーが発生する可能性があり、FE_UNDERFLOWが発生する場合があります.
Original:
If the result is subnormal, an underflow error may occur and FE_UNDERFLOW may be raised.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] ノート

典型的な実装戦略はu1+(
v
u
)2
の等価uですmax(x,y)vmin(x,y)です..を計算することである
Original:
Typical implementation strategy is to calculate an equivalent of u1+(
v
u
)2
where u is max(x,y) and v is min(x,y).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

[編集] も参照してください

平方根は(x)を計算します
Original:
computes square root (x)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
与えられた電力(xy)に番号を発生させます
Original:
raises a number to the given power (xy)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]