normalize ( v -- w )
Factor handbook > The language > Numbers > Vector operations > Vector arithmetic

Prev:norm-sq ( v -- x )
Next:p-norm ( v p -- x )


Vocabulary
math.vectors

Inputs and outputs
va sequence of numbers, not all zero
wa sequence of numbers


Word description
Outputs a vector with the same direction as v but length 1.

Definition