norm ( v -- x )
Factor documentation > Factor handbook > The language > Numbers > Vector operations > Vector arithmetic
Prev:v. ( u v -- x )
Next:norm-sq ( v -- x )


Vocabulary
math.vectors

Inputs and outputs
va sequence of numbers
xa non-negative real number


Word description
Computes the length of a mathematical vector.

Definition
USING: math.functions ;

IN: math.vectors

: norm ( v -- x ) norm-sq sqrt ; inline