real-part ( z -- x )
Factor handbook » The language » Numbers » Complex numbers

Prev:complex
Next:imaginary-part ( z -- y )


Vocabulary
math

Inputs
za number


Outputs
xa real


Word description
Outputs the real part of a complex number. This acts as the identity on real numbers.

Examples
USING: math prettyprint ; C{ 1 2 } real-part .
1


Definition


Methods