nulib ~master (2025-12-14T08:31:17.4307625)
Dub
Repo
cos
nulib
math
intrinsics
Computes cosine of the given value.
@
safe
@
nogc
nothrow pure pragma(
inline
, true)
T
cos
(
T
)
(
T
x
)
if
(
__traits(
isFloating
,
T
)
)
Parameters
x
T
The value
Return Value
Type:
T
The cosine of
x
.
Meta
Source
See Implementation
nulib
math
intrinsics
functions
abs
acos
acosh
asin
asinh
atan
atan2
atanh
ceil
cos
cosh
floor
ldexp
rint
round
sin
sinh
sqrt
tan
tanh
trunc
Computes cosine of the given value.