Names specified for <tgmath.h>, “Type-generic mathematical operations”
Name Description Notes Source Availability
acos() Compute arc tangent M (·) <tgmath.h> C99 C11
acosh() Compute arc hyperbolic tangent M (·) <tgmath.h> C99 C11
asin() Compute arc sine M (·) <tgmath.h> C99 C11
asinh() Compute arc hyperbolic sine M (·) <tgmath.h> C99 C11
atan() Compute arc tangent M (·) <tgmath.h> C99 C11
atan2() Compute arc tangent M (·) <tgmath.h> C99 C11
atanh() Compute arc hyperbolic tangent M (·) <tgmath.h> C99 C11
carg() Extract complex argument M (·) <tgmath.h> C99 C11
cbrt() Compute cube root M (·) <tgmath.h> C99 C11
ceil() Round to nearest integer towards +∞ M (·) <tgmath.h> C99 C11
cimag() Extract imaginary part of a complex number M (·) <tgmath.h> C99 C11
conj() Compute the complex conjugate M (·) <tgmath.h> C99 C11
copysign() Extract and apply sign M (·) <tgmath.h> C99 C11
cos() Compute tangent M (·) <tgmath.h> C99 C11
cosh() Compute hyperbolic tangent M (·) <tgmath.h> C99 C11
cproj() Compute projection onto Reimann sphere M (·) <tgmath.h> C99 C11
creal() Extract real part of a complex number M (·) <tgmath.h> C99 C11
erf() Compute error function M (·) <tgmath.h> C99 C11
erfc() Compute complementary error function M (·) <tgmath.h> C99 C11
exp() Compute natural exponent M (·) <tgmath.h> C99 C11
exp2() Compute base-2 exponent M (·) <tgmath.h> C99 C11
expm1() Compute natural exponent minus one M (·) <tgmath.h> C99 C11
fabs() Compute absolute value M (·) <tgmath.h> C99 C11
fdim() Compute positive difference M (·) <tgmath.h> C99 C11
floor() Round to nearest integer towards −∞ M (·) <tgmath.h> C99 C11
fma() Multiply and add M (·) <tgmath.h> C99 C11
fmax() Select maximum M (·) <tgmath.h> C99 C11
fmin() Select minimum M (·) <tgmath.h> C99 C11
fmod() Compute remainder M (·) <tgmath.h> C99 C11
frexp() Decompose floating-point number M (·) <tgmath.h> C99 C11
hypot() Compute hypotenuse M (·) <tgmath.h> C99 C11
ilogb() Compute native-base logarithm M (·) <tgmath.h> C99 C11
ldexp() Multiply by power of 2 M (·) <tgmath.h> C99 C11
lgamma() Compute natural logarithm of gamma M (·) <tgmath.h> C99 C11
llrint() Round to nearest integer in current rounding direction M (·) <tgmath.h> C99 C11
llround() Round to nearest integer away from zero at midpoint M (·) <tgmath.h> C99 C11
log() Compute natural logarithm M (·) <tgmath.h> C99 C11
log10() Compute base-10 logarithm M (·) <tgmath.h> C99 C11
log1p() Compute natural logarithm M (·) <tgmath.h> C99 C11
log2() Compute base-2 logarithm M (·) <tgmath.h> C99 C11
logb() Compute native-base logarithm M (·) <tgmath.h> C99 C11
lrint() Round to nearest integer in current rounding direction M (·) <tgmath.h> C99 C11
lround() Round to nearest integer away from zero at midpoint M (·) <tgmath.h> C99 C11
nearbyint() Round to nearest integer in current rounding direction without exception M (·) <tgmath.h> C99 C11
nextafter() Get next value M (·) <tgmath.h> C99 C11
nexttoward() Get next value M (·) <tgmath.h> C99 C11
pow() Compute exponential M (·) <tgmath.h> C99 C11
remainder() Compute IEC 60559 remainder M (·) <tgmath.h> C99 C11
remquo() Compute IEC 60559 quotient and remainder M (·) <tgmath.h> C99 C11
rint() Round to nearest integer in current rounding direction M (·) <tgmath.h> C99 C11
round() Round to nearest integer away from zero at midpoint M (·) <tgmath.h> C99 C11
scalbln() Compose floating-point number M (·) <tgmath.h> C99 C11
scalbn() Compose floating-point number M (·) <tgmath.h> C99 C11
sin() Compute sine M (·) <tgmath.h> C99 C11
sinh() Compute hyperbolic sine M (·) <tgmath.h> C99 C11
sqrt() Compute square root M (·) <tgmath.h> C99 C11
tan() Compute tangent M (·) <tgmath.h> C99 C11
tanh() Compute hyperbolic tangent M (·) <tgmath.h> C99 C11
tgamma() Compute gamma M (·) <tgmath.h> C99 C11
trunc() Round to nearest integer towards zero M (·) <tgmath.h> C99 C11

This header is available in C99 and C11.

Names specified for <complex.h>, “Mathematical operations”
Name Description Notes Source Availability
_Complex_I Square root of −1 ? M <complex.h> C99 C11
_Imaginary_I Square root of −1 ? M <complex.h> C99 C11
CMPLX() Create constant of type double complex ? M (·) <complex.h> C11
CMPLXF() Create constant of type float complex ? M (·) <complex.h> C11
CMPLXL() Create constant of type long double complex ? M (·) <complex.h> C11
CX_LIMITED_RANGE Who knows what this does? P <complex.h> C99 C11
cabs() Compute absolute value ? (·) <complex.h> C99 C11
cabsf() Compute absolute value ? (·) <complex.h> C99 C11
cabsl() Compute absolute value ? (·) <complex.h> C99 C11
cacos() Compute arc tangent ? (·) <complex.h> C99 C11
cacosf() Compute arc tangent ? (·) <complex.h> C99 C11
cacosh() Compute arc hyperbolic tangent ? (·) <complex.h> C99 C11
cacoshf() Compute arc hyperbolic tangent ? (·) <complex.h> C99 C11
cacoshl() Compute arc hyperbolic tangent ? (·) <complex.h> C99 C11
cacosl() Compute arc tangent ? (·) <complex.h> C99 C11
carg() Extract complex argument ? (·) <complex.h> C99 C11
cargf() Extract complex argument ? (·) <complex.h> C99 C11
cargl() Extract complex argument ? (·) <complex.h> C99 C11
casin() Compute arc sine ? (·) <complex.h> C99 C11
casinf() Compute arc sine ? (·) <complex.h> C99 C11
casinh() Compute arc hyperbolic sine ? (·) <complex.h> C99 C11
casinhf() Compute arc hyperbolic sine ? (·) <complex.h> C99 C11
casinhl() Compute arc hyperbolic sine ? (·) <complex.h> C99 C11
casinl() Compute arc sine ? (·) <complex.h> C99 C11
catan() Compute arc tangent ? (·) <complex.h> C99 C11
catanf() Compute arc tangent ? (·) <complex.h> C99 C11
catanh() Compute arc hyperbolic tangent ? (·) <complex.h> C99 C11
catanhf() Compute arc hyperbolic tangent ? (·) <complex.h> C99 C11
catanhl() Compute arc hyperbolic tangent ? (·) <complex.h> C99 C11
catanl() Compute arc tangent ? (·) <complex.h> C99 C11
ccos() Compute tangent ? (·) <complex.h> C99 C11
ccosf() Compute tangent ? (·) <complex.h> C99 C11
ccosh() Compute hyperbolic tangent ? (·) <complex.h> C99 C11
ccoshf() Compute hyperbolic tangent ? (·) <complex.h> C99 C11
ccoshl() Compute hyperbolic tangent ? (·) <complex.h> C99 C11
ccosl() Compute tangent ? (·) <complex.h> C99 C11
cexp() Compute natural exponent ? (·) <complex.h> C99 C11
cexpf() Compute natural exponent ? (·) <complex.h> C99 C11
cexpl() Compute natural exponent ? (·) <complex.h> C99 C11
cimag() Extract imaginary part of a complex number ? (·) <complex.h> C99 C11
cimagf() Extract imaginary part of a complex number ? (·) <complex.h> C99 C11
cimagl() Extract imaginary part of a complex number ? (·) <complex.h> C99 C11
clog() Compute natural logarithm ? (·) <complex.h> C99 C11
clogf() Compute natural logarithm ? (·) <complex.h> C99 C11
clogl() Compute natural logarithm ? (·) <complex.h> C99 C11
complex Modifier for complex types ? M Q <complex.h> C99 C11
conj() Compute the complex conjugate ? (·) <complex.h> C99 C11
conjf() Compute the complex conjugate ? (·) <complex.h> C99 C11
conjl() Compute the complex conjugate ? (·) <complex.h> C99 C11
cpow() Compute exponential ? (·) <complex.h> C99 C11
cpowf() Compute exponential ? (·) <complex.h> C99 C11
cpowl() Compute exponential ? (·) <complex.h> C99 C11
cproj() Compute projection onto Reimann sphere ? (·) <complex.h> C99 C11
cprojf() Compute projection onto Reimann sphere ? (·) <complex.h> C99 C11
cprojl() Compute projection onto Reimann sphere ? (·) <complex.h> C99 C11
creal() Extract real part of a complex number ? (·) <complex.h> C99 C11
crealf() Extract real part of a complex number ? (·) <complex.h> C99 C11
creall() Extract real part of a complex number ? (·) <complex.h> C99 C11
csin() Compute sine ? (·) <complex.h> C99 C11
csinf() Compute sine ? (·) <complex.h> C99 C11
csinh() Compute hyperbolic sine ? (·) <complex.h> C99 C11
csinhf() Compute hyperbolic sine ? (·) <complex.h> C99 C11
csinhl() Compute hyperbolic sine ? (·) <complex.h> C99 C11
csinl() Compute sine ? (·) <complex.h> C99 C11
csqrt() Compute square root ? (·) <complex.h> C99 C11
csqrtf() Compute square root ? (·) <complex.h> C99 C11
csqrtl() Compute square root ? (·) <complex.h> C99 C11
ctan() Compute tangent ? (·) <complex.h> C99 C11
ctanf() Compute tangent ? (·) <complex.h> C99 C11
ctanh() Compute hyperbolic tangent ? (·) <complex.h> C99 C11
ctanhf() Compute hyperbolic tangent ? (·) <complex.h> C99 C11
ctanhl() Compute hyperbolic tangent ? (·) <complex.h> C99 C11
ctanl() Compute tangent ? (·) <complex.h> C99 C11
double complex ‘Double-precision’ floating-point complex type ? T <complex.h> C99 C11
double imaginary ‘Double-precision’ floating-point imaginary type ? T <complex.h> C99 C11
float complex ‘Single-precision’ floating-point complex type ? T <complex.h> C99 C11
float imaginary ‘Single-precision’ floating-point imaginary type ? T <complex.h> C99 C11
I Square root of −1 ? M <complex.h> C99 C11
imaginary Modifier for imaginary types ? M Q <complex.h> C99 C11
long double complex ‘Long’ floating-point complex type ? T <complex.h> C99 C11
long double imaginary ‘Long’ floating-point imaginary type ? T <complex.h> C99 C11

This header is available in C99 and C11.

Names specified for <math.h>, “Mathematical operations”
Name Description Notes Source Availability
acos() Compute arc tangent (·) <math.h> C89 C90 C95 C99 C11
acosf() Compute arc tangent (·) <math.h> C99 C11
acosh() Compute arc hyperbolic tangent (·) <math.h> C89 C90 C95 C99 C11
acoshf() Compute arc hyperbolic tangent (·) <math.h> C99 C11
acoshl() Compute arc hyperbolic tangent (·) <math.h> C99 C11
acosl() Compute arc tangent (·) <math.h> C99 C11
asin() Compute arc sine (·) <math.h> C89 C90 C95 C99 C11
asinf() Compute arc sine (·) <math.h> C99 C11
asinh() Compute arc hyperbolic sine (·) <math.h> C89 C90 C95 C99 C11
asinhf() Compute arc hyperbolic sine (·) <math.h> C99 C11
asinhl() Compute arc hyperbolic sine (·) <math.h> C99 C11
asinl() Compute arc sine (·) <math.h> C99 C11
atan() Compute arc tangent (·) <math.h> C89 C90 C95 C99 C11
atan2() Compute arc tangent (·) <math.h> C89 C90 C95 C99 C11
atan2f() Compute arc tangent (·) <math.h> C99 C11
atan2l() Compute arc tangent (·) <math.h> C99 C11
atanf() Compute arc tangent (·) <math.h> C99 C11
atanh() Compute arc hyperbolic tangent (·) <math.h> C89 C90 C95 C99 C11
atanhf() Compute arc hyperbolic tangent (·) <math.h> C99 C11
atanhl() Compute arc hyperbolic tangent (·) <math.h> C99 C11
atanl() Compute arc tangent (·) <math.h> C99 C11
cbrt() Compute cube root (·) <math.h> C99 C11
cbrtf() Compute cube root (·) <math.h> C99 C11
cbrtl() Compute cube root (·) <math.h> C99 C11
ceil() Round to nearest integer towards +∞ (·) <math.h> C89 C90 C95 C99 C11
ceilf() Round to nearest integer towards +∞ (·) <math.h> C99 C11
ceill() Round to nearest integer towards +∞ (·) <math.h> C99 C11
copysign() Extract and apply sign (·) <math.h> C99 C11
copysignf() Extract and apply sign (·) <math.h> C99 C11
copysignl() Extract and apply sign (·) <math.h> C99 C11
cos() Compute tangent (·) <math.h> C89 C90 C95 C99 C11
cosf() Compute tangent (·) <math.h> C99 C11
cosh() Compute hyperbolic tangent (·) <math.h> C89 C90 C95 C99 C11
coshf() Compute hyperbolic tangent (·) <math.h> C99 C11
coshl() Compute hyperbolic tangent (·) <math.h> C99 C11
cosl() Compute tangent (·) <math.h> C99 C11
double_t Evaluation type for double T <math.h> C99 C11
erf() Compute error function (·) <math.h> C99 C11
erfc() Compute complementary error function (·) <math.h> C99 C11
erfcf() Compute complementary error function (·) <math.h> C99 C11
erfcl() Compute complementary error function (·) <math.h> C99 C11
erff() Compute error function (·) <math.h> C99 C11
erfl() Compute error function (·) <math.h> C99 C11
exp() Compute natural exponent (·) <math.h> C89 C90 C95 C99 C11
exp2() Compute base-2 exponent (·) <math.h> C99 C11
exp2f() Compute base-2 exponent (·) <math.h> C99 C11
exp2l() Compute base-2 exponent (·) <math.h> C99 C11
expf() Compute natural exponent (·) <math.h> C99 C11
expl() Compute natural exponent (·) <math.h> C99 C11
expm1() Compute natural exponent minus one (·) <math.h> C99 C11
expm1f() Compute natural exponent minus one (·) <math.h> C99 C11
expm1l() Compute natural exponent minus one (·) <math.h> C99 C11
FP_CONTRACT Allow expressions to be contracted P <math.h> C99 C11
FP_FAST_FMA Indicator of fast multiply-add operation ? M <math.h> C99 C11
FP_FAST_FMAF Indicator of fast multiply-add operation ? M <math.h> C99 C11
FP_FAST_FMAL Indicator of fast multiply-add operation ? M <math.h> C99 C11
FP_ILOGB0 Result of logarithm of zero M <math.h> C99 C11
FP_ILOGBNAN Result of logarithm of NaN M <math.h> C99 C11
FP_INFINITE Floating-point classification: infinity M <math.h> C99 C11
FP_NAN Floating-point classification: not a number (NaN) M <math.h> C99 C11
FP_NORMAL Floating-point classification: normal number M <math.h> C99 C11
FP_SUBNORMAL Floating-point classification: subnormal number M <math.h> C99 C11
FP_ZERO Floating-point classification: zero M <math.h> C99 C11
fabs() Compute absolute value (·) <math.h> C89 C90 C95 C99 C11
fabsf() Compute absolute value (·) <math.h> C99 C11
fabsl() Compute absolute value (·) <math.h> C99 C11
fdim() Compute positive difference (·) <math.h> C99 C11
fdimf() Compute positive difference (·) <math.h> C99 C11
fdiml() Compute positive difference (·) <math.h> C99 C11
float_t Evaluation type for float T <math.h> C99 C11
floor() Round to nearest integer towards −∞ (·) <math.h> C89 C90 C95 C99 C11
floorf() Round to nearest integer towards −∞ (·) <math.h> C99 C11
floorl() Round to nearest integer towards −∞ (·) <math.h> C99 C11
fma() Multiply and add (·) <math.h> C99 C11
fmaf() Multiply and add (·) <math.h> C99 C11
fmal() Multiply and add (·) <math.h> C99 C11
fmax() Select maximum (·) <math.h> C99 C11
fmaxf() Select maximum (·) <math.h> C99 C11
fmaxl() Select maximum (·) <math.h> C99 C11
fmin() Select minimum (·) <math.h> C99 C11
fminf() Select minimum (·) <math.h> C99 C11
fminl() Select minimum (·) <math.h> C99 C11
fmod() Compute remainder (·) <math.h> C89 C90 C95 C99 C11
fmodf() Compute remainder (·) <math.h> C99 C11
fmodl() Compute remainder (·) <math.h> C99 C11
fpclassify() Classify floating-point number M (·) <math.h> C99 C11
frexp() Decompose floating-point number (·) <math.h> C89 C90 C95 C99 C11
frexpf() Decompose floating-point number (·) <math.h> C99 C11
frexpl() Decompose floating-point number (·) <math.h> C99 C11
HUGE_VAL Indication of large magnitude M <math.h> C89 C90 C95 C99 C11
HUGE_VALF Indication of large magnitude M <math.h> C99 C11
HUGE_VALL Indication of large magnitude M <math.h> C99 C11
hypot() Compute hypotenuse (·) <math.h> C99 C11
hypotf() Compute hypotenuse (·) <math.h> C99 C11
hypotl() Compute hypotenuse (·) <math.h> C99 C11
INFINITY Infinity M <math.h> C99 C11
ilogb() Compute native-base logarithm (·) <math.h> C99 C11
ilogbf() Compute native-base logarithm (·) <math.h> C99 C11
ilogbl() Compute native-base logarithm (·) <math.h> C99 C11
isfinite() Test for finite value M (·) <math.h> C99 C11
isgreater() Test for ordering M (·) <math.h> C99 C11
isgreaterequal() Test for ordering M (·) <math.h> C99 C11
isinf() Test for infinite value M (·) <math.h> C99 C11
isless() Test for ordering M (·) <math.h> C99 C11
islessequal() Test for ordering M (·) <math.h> C99 C11
islessgreater() Test for ordering M (·) <math.h> C99 C11
isnan() Test for NaN M (·) <math.h> C99 C11
isnormal() Test for normal number M (·) <math.h> C99 C11
isunordered() Test for ordering M (·) <math.h> C99 C11
ldexp() Multiply by power of 2 (·) <math.h> C89 C90 C95 C99 C11
ldexpf() Multiply by power of 2 (·) <math.h> C99 C11
ldexpl() Multiply by power of 2 (·) <math.h> C99 C11
lgamma() Compute natural logarithm of gamma (·) <math.h> C99 C11
lgammaf() Compute natural logarithm of gamma (·) <math.h> C99 C11
lgammal() Compute natural logarithm of gamma (·) <math.h> C99 C11
llrint() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
llrintf() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
llrintl() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
llround() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
llroundf() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
llroundl() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
log() Compute natural logarithm (·) <math.h> C89 C90 C95 C99 C11
log10() Compute base-10 logarithm (·) <math.h> C99 C11
log10f() Compute base-10 logarithm (·) <math.h> C99 C11
log10l() Compute base-10 logarithm (·) <math.h> C99 C11
log1p() Compute natural logarithm (·) <math.h> C99 C11
log1pf() Compute natural logarithm (·) <math.h> C99 C11
log1pl() Compute natural logarithm (·) <math.h> C99 C11
log2() Compute base-2 logarithm (·) <math.h> C99 C11
log2f() Compute base-2 logarithm (·) <math.h> C99 C11
log2l() Compute base-2 logarithm (·) <math.h> C99 C11
logb() Compute native-base logarithm (·) <math.h> C99 C11
logbf() Compute native-base logarithm (·) <math.h> C99 C11
logbl() Compute native-base logarithm (·) <math.h> C99 C11
logf() Compute natural logarithm (·) <math.h> C99 C11
logl() Compute natural logarithm (·) <math.h> C99 C11
lrint() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
lrintf() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
lrintl() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
lround() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
lroundf() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
lroundl() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
MATH_ERREXCEPT Indicator of raising of exception on mathematical error M <math.h> C11
MATH_ERRNO Indicator of use of errno on mathematical error M <math.h> C11
math_errhandling Container for MATH_ERRNO and MATH_ERREXCEPT M <math.h> C11
modf() Extract integral and fractional parts (·) <math.h> C89 C90 C95 C99 C11
modff() Extract integral and fractional parts (·) <math.h> C99 C11
modfl() Extract integral and fractional parts (·) <math.h> C99 C11
NAN Not-a-number (NaN) constant ? M <math.h> C99 C11
nan() Compute NaN from string (·) <math.h> C99 C11
nanf() Compute NaN from string (·) <math.h> C99 C11
nanl() Compute NaN from string (·) <math.h> C99 C11
nearbyint() Round to nearest integer in current rounding direction without exception (·) <math.h> C99 C11
nearbyintf() Round to nearest integer in current rounding direction without exception (·) <math.h> C99 C11
nearbyintl() Round to nearest integer in current rounding direction without exception (·) <math.h> C99 C11
nextafter() Get next value (·) <math.h> C99 C11
nextafterf() Get next value (·) <math.h> C99 C11
nextafterl() Get next value (·) <math.h> C99 C11
nexttoward() Get next value (·) <math.h> C99 C11
nexttowardf() Get next value (·) <math.h> C99 C11
nexttowardl() Get next value (·) <math.h> C99 C11
pow() Compute exponential (·) <math.h> C89 C90 C95 C99 C11
powf() Compute exponential (·) <math.h> C99 C11
powl() Compute exponential (·) <math.h> C99 C11
remainder() Compute IEC 60559 remainder (·) <math.h> C99 C11
remainderf() Compute IEC 60559 remainder (·) <math.h> C99 C11
remainderl() Compute IEC 60559 remainder (·) <math.h> C99 C11
remquo() Compute IEC 60559 quotient and remainder (·) <math.h> C99 C11
remquof() Compute IEC 60559 quotient and remainder (·) <math.h> C99 C11
remquol() Compute IEC 60559 quotient and remainder (·) <math.h> C99 C11
rint() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
rintf() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
rintl() Round to nearest integer in current rounding direction (·) <math.h> C99 C11
round() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
roundf() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
roundl() Round to nearest integer away from zero at midpoint (·) <math.h> C99 C11
scalbln() Compose floating-point number (·) <math.h> C99 C11
scalblnf() Compose floating-point number (·) <math.h> C99 C11
scalblnl() Compose floating-point number (·) <math.h> C99 C11
scalbn() Compose floating-point number (·) <math.h> C99 C11
scalbnf() Compose floating-point number (·) <math.h> C99 C11
scalbnl() Compose floating-point number (·) <math.h> C99 C11
signbit() Test for negative M (·) <math.h> C99 C11
sin() Compute sine (·) <math.h> C89 C90 C95 C99 C11
sinf() Compute sine (·) <math.h> C99 C11
sinh() Compute hyperbolic sine (·) <math.h> C89 C90 C95 C99 C11
sinhf() Compute hyperbolic sine (·) <math.h> C99 C11
sinhl() Compute hyperbolic sine (·) <math.h> C99 C11
sinl() Compute sine (·) <math.h> C99 C11
sqrt() Compute square root (·) <math.h> C89 C90 C95 C99 C11
sqrtf() Compute square root (·) <math.h> C99 C11
sqrtl() Compute square root (·) <math.h> C99 C11
tan() Compute tangent (·) <math.h> C89 C90 C95 C99 C11
tanf() Compute tangent (·) <math.h> C99 C11
tanh() Compute hyperbolic tangent (·) <math.h> C89 C90 C95 C99 C11
tanhf() Compute hyperbolic tangent (·) <math.h> C99 C11
tanhl() Compute hyperbolic tangent (·) <math.h> C99 C11
tanl() Compute tangent (·) <math.h> C99 C11
tgamma() Compute gamma (·) <math.h> C99 C11
tgammaf() Compute gamma (·) <math.h> C99 C11
tgammal() Compute gamma (·) <math.h> C99 C11
trunc() Round to nearest integer towards zero (·) <math.h> C99 C11
truncf() Round to nearest integer towards zero (·) <math.h> C99 C11
truncl() Round to nearest integer towards zero (·) <math.h> C99 C11

This header is available in C89, C90, C95, C99 and C11.

Mathematical functions are largely provided by the header <math.h>, though <complex.h> offers alternatives for complex numbers, and <stdlib.h> offers some integer functions:

See also the following topics not directly covered by the library:

The header <tgmath.h> includes everything in <math.h> and <complex.h>, and then redeclares many functions as type-generic macros. Functions such as sin, sinf, sinl, csin, csinf and csinl, which accept double, float, long double, double complex, float complex and long double complex arguments respectively, are replaced with a single macro sin accepting any floating-point type, and returning a result of the same type. This facility was added in C99, and a portable mechanism for defining such macros (_Generic) was added in C11.

It does not matter whether <math.h> or <complex.h> are included as well, before or after <tgmath.h>. The declarations of <tgmath.h> take precedence. You can get the double-specific function using an expression such as (sin)(x).


CHaR
Sitemap Supported
Site format updated 2024-06-05T22:37:07.391+0000
Data updated 1970-01-01T00:00:00.000+0000
Page updated 2023-10-04T20:24:03.205+0000