Espacios de nombres
Variantes
Acciones

MATH_ERRNO, MATH_ERREXCEPT, math_errhandling

De cppreference.com
< cpp‎ | numeric‎ | math

 
 
Numéricos biblioteca
Funciones matemáticas comunes
Floating-point medio ambiente
Los números complejos
Matrices numéricas
Pseudo-aleatoria de generación de números
En tiempo de compilación aritmética racional (C++11)
Genéricos operaciones numéricas
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
Funciones matemáticas comunes
Funciones
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operaciones 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.
remainder(C++11)
remquo(C++11)
fma(C++11)
fmax(C++11)
fmin(C++11)
fdim(C++11)
nan
nanf
nanl
(C++11)
(C++11)
(C++11)
Funciones exponenciales
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(C++11)
expm1(C++11)
log
log10
log1p(C++11)
log2(C++11)
Funciones de energía
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(C++11)
hypot(C++11)
pow
Funciones 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.
sinh
cosh
tanh
asinh(C++11)
acosh(C++11)
atanh(C++11)
Error gamma y funciones
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(C++11)
erfc(C++11)
lgamma(C++11)
tgamma(C++11)
Más cerca de las operaciones con enteros en coma flotante
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
(C++11)
(C++11)
(C++11)
trunc(C++11)
nearbyint(C++11)
rint
lrint
llrint
(C++11)
(C++11)
(C++11)
Funciones de punto flotante de manipulación
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
(C++11)
(C++11)
ilogb(C++11)
logb(C++11)
frexp
modf
nextafter
nexttoward
(C++11)
(C++11)
copysign(C++11)
Clasificación / Comparación
Original:
Classification/Comparison
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fpclassify(C++11)
isfinite(C++11)
isinf(C++11)
isnan(C++11)
isnormal(C++11)
signbit(C++11)
isgreater(C++11)
isgreaterequal(C++11)
isless(C++11)
islessequal(C++11)
islessgreater(C++11)
isunordered(C++11)
Constantes Macro
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_VALF
HUGE_VAL
HUGE_VALL
(C++11)

(C++11)
INFINITY(C++11)
NAN(C++11)
math_errhandling
MATH_ERRNO
MATH_ERREXCEPT
(C++11)
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
FP_INFINITE
FP_NAN
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
 
Defined in header <cmath>
#define MATH_ERRNO        1
(desde C++11)
#define MATH_ERREXCEPT    2
(desde C++11)
#define math_errhandling  /*implementation defined*/
(desde C++11)
El math_errhandling constante macro expande una expresión de int tipo que es o bien igual a MATH_ERRNO, o igual a MATH_ERREXCEPT, o igual a su OR bit a bit (MATH_ERRNO | MATH_ERREXCEPT) .
Original:
The macro constant math_errhandling expands to an expression of type int that is either equal to MATH_ERRNO, or equal to MATH_ERREXCEPT, or equal to their bitwise OR (MATH_ERRNO | MATH_ERREXCEPT).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
El valor de math_errhandling indica el tipo de control de errores que se lleva a cabo por los operadores de punto flotante y funciones:
Original:
The value of math_errhandling indicates the type of error handling that is performed by the floating-point operators and functions:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Constant
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
MATH_ERREXCEPT
indica que las excepciones de punto flotante se utilizan: por lo menos FE_DIVBYZERO, FE_INVALID y FE_OVERFLOW se definen en <cfenv> .
Original:
indicates that floating-point exceptions are used: at least FE_DIVBYZERO, FE_INVALID, and FE_OVERFLOW are defined in <cfenv>.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
MATH_ERRNO
indica que las operaciones de punto flotante utilizar la variable de errno para corregir errores .
Original:
indicates that floating-point operations use the variable errno to report errors.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


Los siguientes coma flotante condiciones de error se registran:
Original:
The following floating-point error conditions are recognized:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
# Error de dominio (argumento de entrada está fuera del rango en el que se matemáticamente la operación definida, por ejemplo std::sqrt(-1), std::log(-1), o std::acos(2)). Si el bit se establece MATH_ERRNO, EDOM se asigna a errno. Si el bit se establece MATH_ERREXCEPT, FE_INVALID se eleva .
Original:
# Domain error (input argument is outside the range in which the operation is mathematically defined, e.g. std::sqrt(-1), std::log(-1), or std::acos(2)). If MATH_ERRNO bit is set, EDOM is assigned to errno. If MATH_ERREXCEPT bit is set, FE_INVALID is raised.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
# Rango de error (el resultado matemático no puede ser representada como el objeto de tipo especificado, por ejemplo std::atanh(-1), std::log(0.0), std::lgamma(0.0) o). Si el bit se establece MATH_ERRNO, ERANGE se asigna a errno. Si el bit se establece MATH_ERREXCEPT, FE_DIVBYZERO o FE_OVERFLOW se eleva .
Original:
# Range error (the mathematical result cannot be represented as the object of specified type, e.g. std::atanh(-1), std::log(0.0), or std::lgamma(0.0)). If MATH_ERRNO bit is set, ERANGE is assigned to errno. If MATH_ERREXCEPT bit is set, FE_DIVBYZERO or FE_OVERFLOW is raised.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Overflow # (el resultado matemático es finito, pero demasiado grande para ser representados sin error de redondeo extrema, por ejemplo, funciones como std::exp con argumentos suficientemente grandes). Si el bit se establece MATH_ERRNO, ERANGE se asigna a errno. Si el bit se establece MATH_ERREXCEPT, FE_OVERFLOW se eleva .
Original:
# Overflow (the mathematical result is finite, but too big to be represented without extreme roundoff error, e.g. functions such as std::exp with sufficiently large arguments). If MATH_ERRNO bit is set, ERANGE is assigned to errno. If MATH_ERREXCEPT bit is set, FE_OVERFLOW is raised.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
# Subdesbordamiento (el resultado matemático no es cero, pero demasiado pequeño para ser representado sin error de redondeo extrema, por ejemplo, el resultado es inferior a la normal, como en std::sin(subnormal) o para muchas otras funciones con argumentos subnormales). Si el bit está establecido MATH_ERRNO, ERANGE puede ser asignado a errno. Si el bit se establece MATH_ERREXCEPT, FE_UNDERFLOW puede elevarse .
Original:
# Underflow (the mathematical result is non-zero, but too small to be represented without extreme roundoff error, e.g. the result is subnormal, as in std::sin(subnormal) or for many other functions with subnormal arguments). If MATH_ERRNO bit is set, ERANGE may be assigned to errno. If MATH_ERREXCEPT bit is set, 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] Ejemplo

[editar] Ver también

excepciones de punto flotante
Original:
floating-point exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante) [edit]
macro que se expande para POSIX compatible local de subprocesos variable
(variables macro) número de error
Original:
macro which expands to POSIX-compatible thread-local error number variable
(variables macro)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]