dmd ~master (2023-11-01T14:17:50Z)
Dub
Repo
cos
core
math
Returns cosine of x. x is in radians.
Special Values
x
cos(x)
invalid?
NaN
NaN
yes
±∞
NaN
yes
@
nogc
nothrow @
safe
pure
float
cos
(
float
x
)
Bugs
Results are undefined if |x| >=
2
64
.
Meta
Source
See Implementation
core
math
functions
cos
fabs
ldexp
rint
rndtol
rndtonl
sin
sqrt
toPrec
yl2x
Returns cosine of x. x is in radians.