Handbook
Glossary
>rect ( z -- x y )
Factor handbook
»
The language
»
Numbers
»
Complex numbers
Prev:
imaginary-part ( z -- y )
Next:
rect> ( x y -- z )
Vocabulary
math
Inputs
z
a
number
Outputs
x
a
real
y
a
real
Word description
Extracts the real and imaginary components of a complex number.
Definition
IN:
math
GENERIC:
>rect
( z -- x y )
Methods
USING:
kernel
math
;
M:
complex
>rect
[
real-part
]
[
imaginary-part
]
bi
;
inline
USING:
math
;
M:
real
>rect
0
;
inline