≫ ホーム ≫ C言語ヘッダファイル別一覧 ≫ tgmath.h
tgmath.h には引数の型に応じて math.h か complex.h の関数を呼び出すマクロが定義されています.なお,tgmath.h をインクルードすると math.h と complex.h も自動的にインクルードされます.
マクロとそのマクロによって呼び出される関数の一覧は以下の通りです.
マクロ名 | 呼び出される関数 (math.h) | 呼び出される関数 (complex.h) | ||||
---|---|---|---|---|---|---|
double | float | long double | double complex | float complex | long double complex | |
acos | acos | acosf | acosl | cacos | cacosf | cacosl |
asin | asin | asinf | asinl | casin | casinf | casinl |
atan | atan | atanf | atanl | catan | catanf | catanl |
acosh | acosh | acoshf | acoshl | cacosh | cacoshf | cacoshl |
asinh | asinh | asinhf | asinhl | casinh | casinhf | casinhl |
atanh | atanh | atanhf | atanhl | catanh | catanhf | catanhl |
cos | cos | cosf | cosl | ccos | ccosf | ccosl |
sin | sin | sinf | sinl | csin | csinf | csinl |
tan | tan | tanf | tanl | ctan | ctanf | ctanl |
cosh | cosh | coshf | coshl | ccosh | ccoshf | ccoshl |
sinh | sinh | sinhf | sinhl | csinh | csinhf | csinhl |
tanh | tanh | tanhf | tanhl | ctanh | ctanhf | ctanhl |
exp | exp | expf | expl | cexp | cexpf | cexpl |
log | log | logf | logl | clog | clogf | clogl |
pow | pow | powf | powl | cpow | cpowf | cpowl |
sqrt | sqrt | sqrtf | sqrtl | csqrt | csqrtf | csqrtl |
fabs | fabs | fabsf | fabsl | cabs | cabsf | cabsl |
マクロ名 | 呼び出される関数 (complex.h) | ||
---|---|---|---|
double complex | float complex | long double complex | |
carg | carg | cargf | cargl |
cimag | cimag | cimagf | cimagl |
conj | conj | conjf | conjl |
cproj | cproj | cprojf | cprojl |
creal | creal | crealf | creall |