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
a local clone.
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.
License:
Distributed under the
Boost Software License 1.0.
(See accompanying file LICENSE)
Authors:
Sean Kelly
Source core/stdc/math.d
- alias
float_t= float; - alias
double_t= double; - enum double
HUGE_VAL; - enum double
HUGE_VALF; - enum double
HUGE_VALL; - enum float
INFINITY; - enum float
NAN; - enum int
FP_ILOGB0; - enum int
FP_ILOGBNAN; - enum int
MATH_ERRNO; - enum int
MATH_ERREXCEPT; - enum int
math_errhandling; FP_NANFP_INFINITEFP_ZEROFP_SUBNORMALFP_NORMALFP_FAST_FMAFP_FAST_FMAFFP_FAST_FMAL- pure nothrow @nogc @trusted int
fpclassify(floatx); - pure nothrow @nogc @trusted int
fpclassify(doublex); - pure nothrow @nogc @trusted int
fpclassify(realx); - pure nothrow @nogc @trusted int
isfinite(floatx); - pure nothrow @nogc @trusted int
isfinite(doublex); - pure nothrow @nogc @trusted int
isfinite(realx); - pure nothrow @nogc @trusted int
isinf(floatx); - pure nothrow @nogc @trusted int
isinf(doublex); - pure nothrow @nogc @trusted int
isinf(realx); - pure nothrow @nogc @trusted int
isnan(floatx); - pure nothrow @nogc @trusted int
isnan(doublex); - pure nothrow @nogc @trusted int
isnan(realx); - pure nothrow @nogc @trusted int
isnormal(floatx); - pure nothrow @nogc @trusted int
isnormal(doublex); - pure nothrow @nogc @trusted int
isnormal(realx); - pure nothrow @nogc @trusted int
signbit(floatx); - pure nothrow @nogc @trusted int
signbit(doublex); - pure nothrow @nogc @trusted int
signbit(realx); - pure nothrow @nogc @trusted int
isgreater(floatx, floaty); - pure nothrow @nogc @trusted int
isgreater(doublex, doubley); - pure nothrow @nogc @trusted int
isgreater(realx, realy); - pure nothrow @nogc @trusted int
isgreaterequal(floatx, floaty); - pure nothrow @nogc @trusted int
isgreaterequal(doublex, doubley); - pure nothrow @nogc @trusted int
isgreaterequal(realx, realy); - pure nothrow @nogc @trusted int
isless(floatx, floaty); - pure nothrow @nogc @trusted int
isless(doublex, doubley); - pure nothrow @nogc @trusted int
isless(realx, realy); - pure nothrow @nogc @trusted int
islessequal(floatx, floaty); - pure nothrow @nogc @trusted int
islessequal(doublex, doubley); - pure nothrow @nogc @trusted int
islessequal(realx, realy); - pure nothrow @nogc @trusted int
islessgreater(floatx, floaty); - pure nothrow @nogc @trusted int
islessgreater(doublex, doubley); - pure nothrow @nogc @trusted int
islessgreater(realx, realy); - pure nothrow @nogc @trusted int
isunordered(floatx, floaty); - pure nothrow @nogc @trusted int
isunordered(doublex, doubley); - pure nothrow @nogc @trusted int
isunordered(realx, realy); - nothrow @nogc @trusted double
acos(doublex); - nothrow @nogc @trusted float
acosf(floatx); - nothrow @nogc @trusted double
asin(doublex); - nothrow @nogc @trusted float
asinf(floatx); - pure nothrow @nogc @trusted double
atan(doublex); - pure nothrow @nogc @trusted float
atanf(floatx); - nothrow @nogc @trusted double
atan2(doubley, doublex); - nothrow @nogc @trusted float
atan2f(floaty, floatx); - pure nothrow @nogc @trusted double
cos(doublex); - pure nothrow @nogc @trusted float
cosf(floatx); - pure nothrow @nogc @trusted double
sin(doublex); - pure nothrow @nogc @trusted float
sinf(floatx); - pure nothrow @nogc @trusted double
tan(doublex); - pure nothrow @nogc @trusted float
tanf(floatx); - nothrow @nogc @trusted double
acosh(doublex); - nothrow @nogc @trusted float
acoshf(floatx); - pure nothrow @nogc @trusted double
asinh(doublex); - pure nothrow @nogc @trusted float
asinhf(floatx); - nothrow @nogc @trusted double
atanh(doublex); - nothrow @nogc @trusted float
atanhf(floatx); - nothrow @nogc @trusted double
cosh(doublex); - nothrow @nogc @trusted float
coshf(floatx); - nothrow @nogc @trusted double
sinh(doublex); - nothrow @nogc @trusted float
sinhf(floatx); - pure nothrow @nogc @trusted double
tanh(doublex); - pure nothrow @nogc @trusted float
tanhf(floatx); - nothrow @nogc @trusted double
exp(doublex); - nothrow @nogc @trusted float
expf(floatx); - nothrow @nogc @trusted double
exp2(doublex); - nothrow @nogc @trusted float
exp2f(floatx); - nothrow @nogc @trusted double
expm1(doublex); - nothrow @nogc @trusted float
expm1f(floatx); - pure nothrow @nogc @trusted double
frexp(doublevalue, int*exp); - pure nothrow @nogc @trusted float
frexpf(floatvalue, int*exp); - nothrow @nogc @trusted int
ilogb(doublex); - nothrow @nogc @trusted int
ilogbf(floatx); - nothrow @nogc @trusted double
ldexp(doublex, intexp); - nothrow @nogc @trusted float
ldexpf(floatx, intexp); - nothrow @nogc @trusted double
log(doublex); - nothrow @nogc @trusted float
logf(floatx); - nothrow @nogc @trusted double
log10(doublex); - nothrow @nogc @trusted float
log10f(floatx); - nothrow @nogc @trusted double
log1p(doublex); - nothrow @nogc @trusted float
log1pf(floatx); - nothrow @nogc @trusted double
log2(doublex); - nothrow @nogc @trusted float
log2f(floatx); - nothrow @nogc @trusted double
logb(doublex); - nothrow @nogc @trusted float
logbf(floatx); - pure nothrow @nogc @trusted double
modf(doublevalue, double*iptr); - pure nothrow @nogc @trusted float
modff(floatvalue, float*iptr); - nothrow @nogc @trusted double
scalbn(doublex, intn); - nothrow @nogc @trusted float
scalbnf(floatx, intn); - nothrow @nogc @trusted double
scalbln(doublex, c_longn); - nothrow @nogc @trusted float
scalblnf(floatx, c_longn); - pure nothrow @nogc @trusted double
cbrt(doublex); - pure nothrow @nogc @trusted float
cbrtf(floatx); - pure nothrow @nogc @trusted double
fabs(doublex); - nothrow @nogc @trusted double
hypot(doublex, doubley); - nothrow @nogc @trusted float
hypotf(floatx, floaty); - nothrow @nogc @trusted double
pow(doublex, doubley); - nothrow @nogc @trusted float
powf(floatx, floaty); - nothrow @nogc @trusted double
sqrt(doublex); - nothrow @nogc @trusted float
sqrtf(floatx); - pure nothrow @nogc @trusted double
erf(doublex); - pure nothrow @nogc @trusted float
erff(floatx); - nothrow @nogc @trusted double
erfc(doublex); - nothrow @nogc @trusted float
erfcf(floatx); - nothrow @nogc @trusted double
lgamma(doublex); - nothrow @nogc @trusted float
lgammaf(floatx); - nothrow @nogc @trusted double
tgamma(doublex); - nothrow @nogc @trusted float
tgammaf(floatx); - pure nothrow @nogc @trusted double
ceil(doublex); - pure nothrow @nogc @trusted float
ceilf(floatx); - pure nothrow @nogc @trusted double
floor(doublex); - pure nothrow @nogc @trusted float
floorf(floatx); - pure nothrow @nogc @trusted double
nearbyint(doublex); - pure nothrow @nogc @trusted float
nearbyintf(floatx); - pure nothrow @nogc @trusted double
rint(doublex); - pure nothrow @nogc @trusted float
rintf(floatx); - nothrow @nogc @trusted c_long
lrint(doublex); - nothrow @nogc @trusted c_long
lrintf(floatx); - nothrow @nogc @trusted long
llrint(doublex); - nothrow @nogc @trusted long
llrintf(floatx); - pure nothrow @nogc @trusted double
round(doublex); - pure nothrow @nogc @trusted float
roundf(floatx); - nothrow @nogc @trusted c_long
lround(doublex); - nothrow @nogc @trusted c_long
lroundf(floatx); - nothrow @nogc @trusted long
llround(doublex); - nothrow @nogc @trusted long
llroundf(floatx); - pure nothrow @nogc @trusted double
trunc(doublex); - pure nothrow @nogc @trusted float
truncf(floatx); - nothrow @nogc @trusted double
fmod(doublex, doubley); - nothrow @nogc @trusted float
fmodf(floatx, floaty); - nothrow @nogc @trusted double
remainder(doublex, doubley); - nothrow @nogc @trusted float
remainderf(floatx, floaty); - nothrow @nogc @trusted double
remquo(doublex, doubley, int*quo); - nothrow @nogc @trusted float
remquof(floatx, floaty, int*quo); - pure nothrow @nogc @trusted double
copysign(doublex, doubley); - pure nothrow @nogc @trusted float
copysignf(floatx, floaty); - pure nothrow @nogc @trusted double
nan(char*tagp); - pure nothrow @nogc @trusted float
nanf(char*tagp); - nothrow @nogc @trusted double
nextafter(doublex, doubley); - nothrow @nogc @trusted float
nextafterf(floatx, floaty); - nothrow @nogc @trusted double
fdim(doublex, doubley); - nothrow @nogc @trusted float
fdimf(floatx, floaty); - pure nothrow @nogc @trusted double
fmax(doublex, doubley); - pure nothrow @nogc @trusted float
fmaxf(floatx, floaty); - pure nothrow @nogc @trusted double
fmin(doublex, doubley); - pure nothrow @nogc @trusted float
fminf(floatx, floaty); - pure nothrow @nogc @trusted double
fma(doublex, doubley, doublez); - pure nothrow @nogc @trusted float
fmaf(floatx, floaty, floatz); - nothrow @nogc @trusted real
acosl(realx); - nothrow @nogc @trusted real
asinl(realx); - pure nothrow @nogc @trusted real
atanl(realx); - nothrow @nogc @trusted real
atan2l(realy, realx); - pure nothrow @nogc @trusted real
cosl(realx); - pure nothrow @nogc @trusted real
sinl(realx); - pure nothrow @nogc @trusted real
tanl(realx); - nothrow @nogc @trusted real
acoshl(realx); - pure nothrow @nogc @trusted real
asinhl(realx); - nothrow @nogc @trusted real
atanhl(realx); - nothrow @nogc @trusted real
coshl(realx); - nothrow @nogc @trusted real
sinhl(realx); - pure nothrow @nogc @trusted real
tanhl(realx); - nothrow @nogc @trusted real
expl(realx); - nothrow @nogc @trusted real
exp2l(realx); - nothrow @nogc @trusted real
expm1l(realx); - pure nothrow @nogc @trusted real
frexpl(realvalue, int*exp); - nothrow @nogc @trusted int
ilogbl(realx); - nothrow @nogc @trusted real
ldexpl(realx, intexp); - nothrow @nogc @trusted real
logl(realx); - nothrow @nogc @trusted real
log10l(realx); - nothrow @nogc @trusted real
log1pl(realx); - nothrow @nogc @trusted real
log2l(realx); - nothrow @nogc @trusted real
logbl(realx); - pure nothrow @nogc @trusted real
modfl(realvalue, real*iptr); - nothrow @nogc @trusted real
scalbnl(realx, intn); - nothrow @nogc @trusted real
scalblnl(realx, c_longn); - pure nothrow @nogc @trusted real
cbrtl(realx); - pure nothrow @nogc @trusted float
fabsf(floatx); - pure nothrow @nogc @trusted real
fabsl(realx); - nothrow @nogc @trusted real
hypotl(realx, realy); - nothrow @nogc @trusted real
powl(realx, realy); - nothrow @nogc @trusted real
sqrtl(realx); - pure nothrow @nogc @trusted real
erfl(realx); - nothrow @nogc @trusted real
erfcl(realx); - nothrow @nogc @trusted real
lgammal(realx); - nothrow @nogc @trusted real
tgammal(realx); - pure nothrow @nogc @trusted real
ceill(realx); - pure nothrow @nogc @trusted real
floorl(realx); - pure nothrow @nogc @trusted real
nearbyintl(realx); - pure nothrow @nogc @trusted real
rintl(realx); - nothrow @nogc @trusted c_long
lrintl(realx); - nothrow @nogc @trusted long
llrintl(realx); - pure nothrow @nogc @trusted real
roundl(realx); - nothrow @nogc @trusted c_long
lroundl(realx); - nothrow @nogc @trusted long
llroundl(realx); - pure nothrow @nogc @trusted real
truncl(realx); - nothrow @nogc @trusted real
fmodl(realx, realy); - nothrow @nogc @trusted real
remainderl(realx, realy); - nothrow @nogc @trusted real
remquol(realx, realy, int*quo); - pure nothrow @nogc @trusted real
copysignl(realx, realy); - pure nothrow @nogc @trusted real
nanl(char*tagp); - nothrow @nogc @trusted real
nextafterl(realx, realy); - nothrow @nogc @trusted double
nexttoward(doublex, realy); - nothrow @nogc @trusted float
nexttowardf(floatx, realy); - nothrow @nogc @trusted real
nexttowardl(realx, realy); - nothrow @nogc @trusted real
fdiml(realx, realy); - pure nothrow @nogc @trusted real
fmaxl(realx, realy); - pure nothrow @nogc @trusted real
fminl(realx, realy); - pure nothrow @nogc @trusted real
fmal(realx, realy, realz);
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:36 2025