p-norm ( v p -- x )
Factor handbook > The language > Numbers > Vector operations > Vector arithmetic

Prev:normalize ( v -- w )
Next:distance ( u v -- x )


Vocabulary
math.vectors

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


Word description
Computes the length of a mathematical vector in L^p space.

Definition