Standardbibliothek Header <tgmath.h> (C99)
Von cppreference.com
Dieser Header ist Teil der numerischen Bibliothek und stellt typgenerische Makros bereit, die auf Basis der Argumenttypen entscheiden, welche reelle oder, wenn anwendbar, komplexe Funktion aufgerufen werden soll.
Includes | |
| <math.h> | |
| <complex.h> |
| Dieser Abschnitt ist unvollständig Grund: 7.28 Typ-generische Mathematik <tgmath.h> |
[edit] Synopsis
| Dieser Abschnitt ist unvollständig Grund: B.27 Typ-generische Mathematik <tgmath.h> |
#include <math.h> #include <complex.h> #define __STDC_VERSION_TGMATH_H__ 202311L #define acos /* see description */ #define acosh /* see description */ #define acospi /* see description */ #define asin /* see description */ #define asinh /* see description */ #define asinpi /* see description */ #define atan /* see description */ #define atan2 /* see description */ #define atan2pi /* see description */ #define atanh /* see description */ #define atanpi /* see description */ #define cbrt /* see description */ #define ceil /* see description */ #define compoundn /* see description */ #define copysign /* see description */ #define cos /* see description */ #define cosh /* see description */ #define cospi /* see description */ #define dadd /* see description */ #define ddiv /* see description */ #define dfma /* see description */ #define dmul /* see description */ #define dsqrt /* see description */ #define dsub /* see description */ #define erf /* see description */ #define erfc /* see description */ #define exp /* see description */ #define exp10 /* see description */ #define exp10m1 /* see description */ #define exp2 /* see description */ #define exp2m1 /* see description */ #define expm1 /* see description */ #define fabs /* see description */ #define fadd /* see description */ #define fdim /* see description */ #define fdiv /* see description */ #define ffma /* see description */ #define floor /* see description */ #define fma /* see description */ #define fmax /* see description */ #define fmaximum /* see description */ #define fmaximum_mag /* see description */ #define fmaximum_mag_num /* see description */ #define fmaximum_num /* see description */ #define fmin /* see description */ #define fminimum /* see description */ #define fminimum_mag /* see description */ #define fminimum_mag_num /* see description */ #define fminimum_num /* see description */ #define fmod /* see description */ #define fmul /* see description */ #define frexp /* see description */ #define fromfp /* see description */ #define fromfpx /* see description */ #define fsqrt /* see description */ #define fsub /* see description */ #define hypot /* see description */ #define ilogb /* see description */ #define ldexp /* see description */ #define lgamma /* see description */ #define llogb /* see description */ #define llrint /* see description */ #define llround /* see description */ #define log /* see description */ #define log10 /* see description */ #define log10p1 /* see description */ #define log1p /* see description */ #define log2 /* see description */ #define log2p1 /* see description */ #define logb /* see description */ #define logp1 /* see description */ #define lrint /* see description */ #define lround /* see description */ #define nearbyint /* see description */ #define nextafter /* see description */ #define nextdown /* see description */ #define nexttoward /* see description */ #define nextup /* see description */ #define pow /* see description */ #define pown /* see description */ #define powr /* see description */ #define remainder /* see description */ #define remquo /* see description */ #define rint /* see description */ #define rootn /* see description */ #define round /* see description */ #define roundeven /* see description */ #define rsqrt /* see description */ #define scalbln /* see description */ #define scalbn /* see description */ #define sin /* see description */ #define sinh /* see description */ #define sinpi /* see description */ #define sqrt /* see description */ #define tan /* see description */ #define tanh /* see description */ #define tanpi /* see description */ #define tgamma /* see description */ #define trunc /* see description */ #define ufromfp /* see description */ #define ufromfpx /* see description */
Nur wenn die Implementierung nicht __STDC_NO_COMPLEX__ definiert.
#ifndef __STDC_WANT_LIB_EXT1__ #define carg /* see description */ #define cimag /* see description */ #define conj /* see description */ #define cproj /* see description */ #define creal /* see description */ #endif
Nur wenn die Implementierung __STDC_IEC_60559_DFP__ definiert
#define d32add /* see description */ #define d32div /* see description */ #define d32fma /* see description */ #define d32mul /* see description */ #define d32sqrt /* see description */ #define d32sub /* see description */ #define d64add /* see description */ #define d64div /* see description */ #define d64fma /* see description */ #define d64mul /* see description */ #define d64sqrt /* see description */ #define d64sub /* see description */ #define llquantexp /* see description */ #define quantize /* see description */ #define quantum /* see description */ #define samequantum /* see description */
Nur wenn die Implementierung __STDC_IEC_60559_TYPES__ definiert und zusätzlich der Benutzercode __STDC_WANT_IEC_60559_TYPES_EXT__ vor jeder Einbindung von <tgmath.h> definiert.
#ifdef __STDC_WANT_IEC_60559_TYPES_EXT__ #define /*dMadd*/ /* see description */ #define /*dMdiv*/ /* see description */ #define /*dMfma*/ /* see description */ #define /*dMmul*/ /* see description */ #define /*dMsqrt*/ /* see description */ #define /*dMsub*/ /* see description */ #define /*dMxadd*/ /* see description */ #define /*dMxdiv*/ /* see description */ #define /*dMxfma*/ /* see description */ #define /*dMxmul*/ /* see description */ #define /*dMxsqrt*/ /* see description */ #define /*dMxsub*/ /* see description */ #define /*fMadd*/ /* see description */ #define /*fMdiv*/ /* see description */ #define /*fMfma*/ /* see description */ #define /*fMmul*/ /* see description */ #define /*fMsqrt*/ /* see description */ #define /*fMsub*/ /* see description */ #define /*fMxadd*/ /* see description */ #define /*fMxdiv*/ /* see description */ #define /*fMxfma*/ /* see description */ #define /*fMxmul*/ /* see description */ #define /*fMxsqrt*/ /* see description */ #define /*fMxsub*/ /* see description */