Namespace
Varianti

MATH_ERRNO, MATH_ERREXCEPT, math_errhandling

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

 
 
Numeri libreria
Comuni funzioni matematiche
Virgola mobile ambiente
I numeri complessi
Array numerici
Pseudo-casuale generazione
In fase di compilazione aritmetica razionale (C++11)
Generici operazioni numeriche
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
 
Comuni funzioni matematiche
Funzioni
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operazioni di base
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)
Funzioni esponenziali
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)
Funzioni di risparmio energia
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
Funzioni trigonometriche e iperboliche
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)
Errore e gamma funzioni
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)
Più vicini operazioni di interi in virgola mobile
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)
Floating funzioni di manipolazione di punti
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)
Classificazione / confronto
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)
Macro costanti
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
(dal C++11)
#define MATH_ERREXCEPT    2
(dal C++11)
#define math_errhandling  /*implementation defined*/
(dal C++11)
Il math_errhandling macro costante espande un'espressione di tipo int che è o uguale MATH_ERRNO, o uguale a MATH_ERREXCEPT, o pari alla loro 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.
Il valore math_errhandling indica il tipo di gestione degli errori che è eseguita dai virgola mobile operatori e funzioni:
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 che eccezioni a virgola mobile vengono utilizzati: almeno FE_DIVBYZERO, FE_INVALID e FE_OVERFLOW sono definiti in <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 che le operazioni in virgola mobile utilizzare il errno variabile per segnalare errori .
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.


I seguenti virgola mobile condizioni di errore sono riconosciuti:
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 Domain # (argomento di input è compreso nell'intervallo in cui l'operazione è matematicamente definita, ad esempio std::sqrt(-1), std::log(-1), o std::acos(2)). Se il bit è impostato MATH_ERRNO, EDOM viene assegnato a errno. Se il bit è impostato MATH_ERREXCEPT, FE_INVALID viene generato.
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.
# Errore di area (il risultato matematico non può essere rappresentato come oggetto di tipo specificato, ad esempio std::atanh(-1), std::log(0.0) o std::lgamma(0.0)). Se il bit è impostato MATH_ERRNO, ERANGE viene assegnato a errno. Se il bit è impostato MATH_ERREXCEPT, FE_DIVBYZERO o FE_OVERFLOW viene generato.
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 (il risultato matematico è finito, ma troppo grande per essere rappresentato senza errore di arrotondamento estremo, ad esempio funzioni come std::exp con argomenti sufficientemente grandi). Se il bit è impostato MATH_ERRNO, ERANGE viene assegnato a errno. Se il bit è impostato MATH_ERREXCEPT, FE_OVERFLOW viene generato.
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.
# Underflow (il risultato matematico è diverso da zero, ma troppo piccolo per essere rappresentato senza errore di arrotondamento estrema, ad esempio, il risultato è subnormale, come in std::sin(subnormal) o per molte altre funzioni con argomenti subnormali). Se il bit è impostato MATH_ERRNO, ERANGE può essere assegnato a errno. Se il bit è impostato MATH_ERREXCEPT, FE_UNDERFLOW può essere sollevata.
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.

[modifica] Esempio

[modifica] Vedi anche

eccezioni a virgola mobile
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 costante) [edit]
macro che si espande a POSIX thread locale variable
(variabili macro) Numero di errore
Original:
macro which expands to POSIX-compatible thread-local error number variable
(variabili macro)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]