INFINITY
From cppreference.net
C++
Numerics library
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Common mathematical functions
| Nearest integer floating point operations | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Floating point manipulation functions | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Classification and comparison | |||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
| Types | |||||||||||||||||||||||||||||||||||||||||
| Macro constants | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
Definiert im Header
<cmath>
|
||
|
#define INFINITY /*implementierungsdefiniert*/
|
(seit C++11) | |
Falls die Implementierung Gleitkomma-Unendlichkeiten unterstützt, erweitert sich das Makro
INFINITY
zu einem konstanten Ausdruck vom Typ
float
, der zu positiver oder vorzeichenloser Unendlichkeit ausgewertet wird.
Wenn die Implementierung keine Gleitkomma-Unendlichkeiten unterstützt, erweitert sich das Makro
INFINITY
zu einem positiven Wert, der garantiert zur Überschreitung der Kapazität eines
float
zur Kompilierzeit führt, und die Verwendung dieses Makros erzeugt eine Compiler-Warnung.
Siehe auch
|
(C++11)
|
prüft, ob die gegebene Zahl unendlich ist
(Funktion) |
|
(C++11)
(C++11)
|
kennzeichnet den Überlaufwert für
float
,
double
und
long
double
jeweils
(Makrokonstante) |
|
[static]
|
identifiziert Gleitkommatypen, die den speziellen Wert "positive Unendlichkeit" darstellen können
(öffentliche statische Memberkonstante von
std::numeric_limits<T>
)
|
|
[static]
|
gibt den positiven Unendlichkeitswert des gegebenen Gleitkommatyps zurück
(öffentliche statische Memberfunktion von
std::numeric_limits<T>
)
|
|
C-Dokumentation
für
INFINITY
|
|