c>q ( c -- q )


Vocabulary
math.quaternions

Inputs
ca number


Outputs
qa quaternion


Word description
Turn a complex number into a quaternion.

Examples
USING: math.quaternions prettyprint ; C{ 0 1 } c>q .
{ 0 1 0 0 }


Definition