chickadee » quaternions » make-rectangular

(make-rectangular w [x [y z]])procedure

Constructs a number, complex number, or quaternion number depending on if given 1, 2 or 4 arguments.

> (make-rectangular 1)
1
> (make-rectangular 1 2)
1+2i
> (make-rectangular 1 2 3 4)
1+2i+3j+4k