---
layout: doc
title: general / norm
---
# norm

### NAME

    norm() - return the magnitude of a numeric vector

### SYNOPSIS

    float norm( int array | float array vector );

### DESCRIPTION

    Returns the Euclidean norm, or magnitude, of vector.  Each element of
    vector must be an int or float.  The result is:

        sqrt(x1 * x1 + x2 * x2 + ...)

    If any element of vector is not numeric, an error is raised.

### SEE ALSO

    dotprod(3), distance(3), angle(3), sqrt(3)
