# hypot

< c‎ | numeric‎ | math

C
 Linguagem Digite apoio Gerenciamento de memória dinâmica De tratamento de erros Utilidades do programa Utilitários de data e hora Biblioteca cordas Algoritmos Numéricos Entrada / saída de apoio Suporte de localização Apoio discussão (C11) Operações atômicas (C11)

Funções matemáticas comuns
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operações básicas
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.
 abslabsllabsimaxabs (C99)
 fabs
 divldivlldivimaxdiv (C99)
 fmod
 remainder (C99)
 remquo (C99)
 fma (C99)
 fmax (C99)
 fmin (C99)
 fdim (C99)
 nannanfnanl (C99)(C99)(C99)
Funções exponenciais
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)
Funções de poder
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
Funções trigonométricas e hiperbólicas
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.
 sin
 cos
 tan
 asin
 acos
 atan
 atan2
 sinh
 cosh
 tanh
 asinh (C99)
 acosh (C99)
 atanh (C99)
Erro e funções gamma
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)
Número inteiro mais próximo de operações de ponto flutuante
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
 roundlroundllround (C99)(C99)(C99)
 trunc (C99)
 nearbyint (C99)
 rintlrintllrint (C99)(C99)(C99)
Flutuando funções de manipulação de pontos
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
 scalbnscalbln (C99)(C99)
 ilogb (C99)
 logb (C99)
 frexp
 modf
 nextafternexttoward (C99)(C99)
 copysign (C99)
Classificação
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)
Constantes de macros
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.
 HUGE_VALFHUGE_VALHUGE_VALL (C99)(C99)
 FP_NORMALFP_SUBNORMALFP_ZEROFP_INFINITEFP_NAN (C99)(C99)(C99)(C99)(C99)

 Defined in header float       hypotf( float x, float y ); double      hypot( double x, double y ); long double hypotl( long double x, long double y );
Calcula a raiz quadrada da soma dos quadrados dos `x` e `y`, sem excesso indevido ou underflow nas fases intermédias do cálculo. Este é o comprimento da hipotenusa de um triângulo rectângulo com lados de comprimento e `x` `y`, ou a distância entre o ponto a partir do `(x,y)` `(0,0)` origem, ou a magnitude de um número complexo `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.

## Índice

### [editar]Parâmetros

 x - flutuando valor de pontoOriginal: floating point valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. y - flutuando valor de pontoOriginal: floating point valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.

### [editar]Valor de retorno

A hipotenusa de um triângulo retângulo, 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.

### [editar]Exceções

Se o resultado transborda, um erro pode ocorrer gama e pode ser levantada 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.
Se o resultado for subnormal, um erro pode ocorrer underflow e FE_UNDERFLOW pode ser levantada.
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.

### [editar]Notas

Estratégia de implementação típica é calcular um equivalente de u1+(
 v u
)2
onde `u` é max(x,y) e `v` é min(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.

### [editar]Veja também

 sqrt Calcula a raiz quadrada (√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. (função)  pow levanta uma série para o poder dado (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. (função)  C++ documentation for hypot