View source code
Display the source code in core/stdc/math.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module core.stdc.math

D header file for C99.

This module contains bindings to selected types and functions from the standard C header <math.h>. Note that this is not automatically generated, and may omit some types/functions from the original C header.

Functions

NameDescription
acos(x)
acosf(x)
acosh(x)
acoshf(x)
acoshl(x)
acosl(x)
asin(x)
asinf(x)
asinh(x)
asinhf(x)
asinhl(x)
asinl(x)
atan(x)
atan2(y, x)
atan2f(y, x)
atan2l(y, x)
atanf(x)
atanh(x)
atanhf(x)
atanhl(x)
atanl(x)
cbrt(x)
cbrtf(x)
cbrtl(x)
ceil(x)
ceilf(x)
ceill(x)
copysign(x, y)
copysignf(x, y)
copysignl(x, y)
cos(x)
cosf(x)
cosh(x)
coshf(x)
coshl(x)
cosl(x)
erf(x)
erfc(x)
erfcf(x)
erfcl(x)
erff(x)
erfl(x)
exp(x)
exp2(x)
exp2f(x)
exp2l(x)
expf(x)
expl(x)
expm1(x)
expm1f(x)
expm1l(x)
fabs(x)
fabsf(x)
fabsl(x)
fdim(x, y)
fdimf(x, y)
fdiml(x, y)
floor(x)
floorf(x)
floorl(x)
fma(x, y, z)
fmaf(x, y, z)
fmal(x, y, z)
fmax(x, y)
fmaxf(x, y)
fmaxl(x, y)
fmin(x, y)
fminf(x, y)
fminl(x, y)
fmod(x, y)
fmodf(x, y)
fmodl(x, y)
fpclassify(x)
frexp(value, exp)
frexpf(value, exp)
frexpl(value, exp)
hypot(x, y)
hypotf(x, y)
hypotl(x, y)
ilogb(x)
ilogbf(x)
ilogbl(x)
isfinite(x)
isgreater(x, y)
isgreaterequal(x, y)
isinf(x)
isless(x, y)
islessequal(x, y)
islessgreater(x, y)
isnan(x)
isnormal(x)
isunordered(x, y)
ldexp(x, exp)
ldexpf(x, exp)
ldexpl(x, exp)
lgamma(x)
lgammaf(x)
lgammal(x)
llrint(x)
llrintf(x)
llrintl(x)
llround(x)
llroundf(x)
llroundl(x)
log(x)
log10(x)
log10f(x)
log10l(x)
log1p(x)
log1pf(x)
log1pl(x)
log2(x)
log2f(x)
log2l(x)
logb(x)
logbf(x)
logbl(x)
logf(x)
logl(x)
lrint(x)
lrintf(x)
lrintl(x)
lround(x)
lroundf(x)
lroundl(x)
modf(value, iptr)
modff(value, iptr)
modfl(value, iptr)
nan(tagp)
nanf(tagp)
nanl(tagp)
nearbyint(x)
nearbyintf(x)
nearbyintl(x)
nextafter(x, y)
nextafterf(x, y)
nextafterl(x, y)
nexttoward(x, y)
nexttowardf(x, y)
nexttowardl(x, y)
pow(x, y)
powf(x, y)
powl(x, y)
remainder(x, y)
remainderf(x, y)
remainderl(x, y)
remquo(x, y, quo)
remquof(x, y, quo)
remquol(x, y, quo)
rint(x)
rintf(x)
rintl(x)
round(x)
roundf(x)
roundl(x)
scalbln(x, n)
scalblnf(x, n)
scalblnl(x, n)
scalbn(x, n)
scalbnf(x, n)
scalbnl(x, n)
signbit(x)
sin(x)
sinf(x)
sinh(x)
sinhf(x)
sinhl(x)
sinl(x)
sqrt(x)
sqrtf(x)
sqrtl(x)
tan(x)
tanf(x)
tanh(x)
tanhf(x)
tanhl(x)
tanl(x)
tgamma(x)
tgammaf(x)
tgammal(x)
trunc(x)
truncf(x)
truncl(x)

Manifest constants

NameTypeDescription
FP_FAST_FMA
FP_FAST_FMAF
FP_FAST_FMAL
FP_ILOGB0
FP_ILOGBNAN
FP_INFINITE
FP_NAN
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
HUGE_VAL
HUGE_VALF
HUGE_VALL
INFINITY
MATH_ERREXCEPT
math_errhandling
MATH_ERRNO
NAN

Aliases

NameTypeDescription
double_t double
float_t float

Authors

Sean Kelly

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)