Handbook
Glossary
rect> ( x y -- z )
Factor handbook
»
The language
»
Numbers
»
Complex numbers
Prev:
>rect ( z -- x y )
Next:
Embedding of real numbers in complex numbers
Vocabulary
math
Inputs
x
a
real
y
a
real
Outputs
z
a
number
Word description
Creates a complex number from real and imaginary components. If
z
is an integer zero, this will simply output
x
.
Definition
USING:
kernel
;
IN:
math
:
rect>
( x y -- z )
dup
0
=
[
drop
]
[
complex
boa
]
if
;
inline