The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
cos
core
math
Returns cosine of x. x is in radians.
Special Values
x
cos(x)
invalid?
NaN
NaN
yes
±∞
NaN
yes
alias
cos
=
llvm_cos
!
float
import core.math;
version(LDC)
@
nogc
nothrow @
safe
pure
alias
cos
=
llvm_cos
!float
alias
cos
=
llvm_cos
!
double
alias
cos
=
llvm_cos
!
real
Bugs
Results are undefined if |x| >=
2
64
.
Meta
Source
See Implementation
core
math
aliases
cos
fabs
rint
rndtol
sin
functions
ldexp
rndtonl
sqrt
toPrec
Returns cosine of x. x is in radians.