Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
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
v
a sequence of numbers
x
a 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