Handbook
Glossary
cos ( x -- y )
Factor handbook
»
The language
»
Numbers
»
Mathematical functions
»
Trigonometric and hyperbolic functions
Next:
sin ( x -- y )
Vocabulary
math
.
functions
Inputs and outputs
x
a
number
y
a
number
Word description
Trigonometric cosine.
Definition
IN:
math.functions
GENERIC:
cos
( x -- y )
foldable
flushable
Methods
USING:
kernel
math
math.functions
math.libm
;
M:
complex
cos
>float-rect
[
[
fcos
]
[
fcosh
]
bi*
*
]
[
[
fsin
neg
]
[
fsinh
]
bi*
*
]
2bi
rect>
;
USING:
math
math.functions
math.libm
;
M:
float
cos
fcos
;
inline
USING:
math
math.functions
;
M:
real
cos
>float
cos
;
inline