Handbook
Glossary
acos ( x -- y )
Factor handbook
»
The language
»
Numbers
»
Mathematical functions
»
Trigonometric and hyperbolic functions
Prev:
cot ( x -- y )
Next:
asin ( x -- y )
Vocabulary
math
.
functions
Inputs and outputs
x
a
number
y
a
number
Word description
Inverse trigonometric cosine.
Definition
USING:
kernel
math
math.constants
math.libm
;
IN:
math.functions
:
acos
( x -- y )
dup
[-1,1]?
[
>float
facos
]
[
asin
pi
2
/
swap
-
]
if
;
inline