Namensräume
Varianten
Aktionen

MATH_ERRNO, MATH_ERREXCEPT, math_errhandling

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

 
 
Numerik-Bibliothek
Gemeinsame mathematischen Funktionen
Floating-Point-Umgebung
Komplexe Zahlen
Numerische Arrays
Pseudo-Zufallszahlen
Compile-time rationale Arithmetik (C++11)
Generische numerische Operationen
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
 
Gemeinsame mathematischen Funktionen
Funktionen
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Grundlegende Bedienung
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)
Exponentialfunktionen
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)
Power-Funktionen
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
Trigonometrische und hyperbolische Funktionen
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)
Fehler-und Gamma-Funktionen
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)
Nächste ganze Zahl Fließkomma-Operationen
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-Point-Manipulation Funktionen
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)
Klassifizierung / Vergleich
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)
Makro Konstanten
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
(seit C++11)
#define MATH_ERREXCEPT    2
(seit C++11)
#define math_errhandling  /*implementation defined*/
(seit C++11)
Das Makro konstanten math_errhandling erweitert, um einen Ausdruck des Typs int, die entweder gleich MATH_ERRNO oder gleich MATH_ERREXCEPT, oder gleich ihre bitweise OR (MATH_ERRNO | MATH_ERREXCEPT) ist .
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.
Der Wert gibt den Typ math_errhandling der Fehlerbehandlung die von den Floating-Point-Operatoren und Funktionen ausgeführt wird:
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
zeigt an, dass Gleitkomma-Exceptions werden verwendet: mindestens FE_DIVBYZERO, FE_INVALID und FE_OVERFLOW in <cfenv> definiert .
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
zeigt, dass die Floating-Point-Operationen verwenden die Variable errno, Fehler zu melden .
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.


Die folgenden Gleitkomma-Fehlerzustände werden erkannt:
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.
# Domain-Fehler (Eingabeargument außerhalb des Bereichs, in dem der Vorgang mathematisch definiert ist, z. B. std::sqrt(-1), std::log(-1) oder std::acos(2)). Wenn MATH_ERRNO Bit gesetzt ist, wird EDOM um errno zugeordnet. Wenn MATH_ERREXCEPT Bit gesetzt ist, wird FE_INVALID erhöht .
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.
# Bereich Fehlers (die mathematische Ergebnis kann nicht als Gegenstand der angegebenen Art, z. B. std::atanh(-1), std::log(0.0) oder std::lgamma(0.0) dargestellt werden). Wenn MATH_ERRNO Bit gesetzt ist, wird ERANGE um errno zugeordnet. Wenn MATH_ERREXCEPT Bit gesetzt ist, FE_DIVBYZERO oder FE_OVERFLOW angehoben .
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 (das mathematische Ergebnis ist endlich, aber zu groß, um ohne extreme Rundungsfehler, z. B. Funktionen wie std::exp mit ausreichend großen Argumenten vertreten werden). Wenn MATH_ERRNO Bit gesetzt ist, wird ERANGE um errno zugeordnet. Wenn MATH_ERREXCEPT Bit gesetzt ist, wird FE_OVERFLOW erhöht .
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.
# Unterlauf (das mathematische Ergebnis nicht Null ist, aber zu klein, um ohne extreme Rundungsfehler dargestellt werden, z. B. das Ergebnis ist subnormale, wie in std::sin(subnormal) oder für viele andere Funktionen mit subnormale Argumente). Wenn MATH_ERRNO Bit gesetzt ist, kann an ERANGE errno zugeordnet werden. Wenn MATH_ERREXCEPT Bit gesetzt ist, kann FE_UNDERFLOW angehoben werden .
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.

[Bearbeiten] Beispiel

[Bearbeiten] Siehe auch

Floating-Point-Ausnahmen
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.

(Makro konstant) [edit]
Makro, das auf POSIX-kompatiblen lokalen Thread-Fehler-Nummer variable
(Makro-Variablen) erweitert
Original:
macro which expands to POSIX-compatible thread-local error number variable
(Makro-Variablen)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]