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

Manifest constants

NameTypeDescription
FP_EMPTY
FP_FAST_FMA
FP_FAST_FMAF
FP_FAST_FMAL
FP_ILOGB0
FP_ILOGBNAN
FP_INFINITE
FP_NAN
FP_NANQ
FP_NANS
FP_NORMAL
FP_SUBNORMAL
FP_UNSUPPORTED
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)