norm

norm(x)

norm(x, p)

Try it yourself:


Measure vector or matrix size with norm

norm calculates a norm: a non-negative measure of vector length or matrix magnitude. The default commonly corresponds to Euclidean length for vectors.

Example

The norm of [3,4] is 5. Use hypot for component lengths directly, and distance for separation between points. Norms support normalization, error measurement, and convergence checks.

Choices and caveats

Different norm orders measure different properties, so state which norm a formula requires. For complex vectors, conjugation matters; see conj and ctranspose. Inputs should be numeric and dimensionally meaningful.

Try Norm in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions