Contents Previous Next Subchapters Current Chapters-> positive negative addition coercion subtraction multiplication division equality ordered logicalOperator matrixMultiplication matrixDivision exponentiation transpose norm stringEquality stringOrdered sequence operationOrder Parent Chapters-> Omatrix6 expression norm Search Tools-> contents reference index search

The Norm Operator
 Syntax `| `value` |` See Also norm function abs , max

Description
Returns the norm of an integer, real, double-precision, or complex value. An integer or real value returns a real scalar, and a double-precision or complex value returns a double-precision scalar. ``` ```If the value is not complex, the norm is the square root of the sum of the squares of its elements. If the value is complex, the norm is the square root of the sum of the squares of the real and imaginary parts of its elements.

Tutorial

Scalar Norm
If the value is a scalar, the result is its absolute value. ```      print |-1| ``` O-Matrix will respond ```      1 ```
Vector Norm
If the value is a vector, the result is the corresponding distance. For example ```      print |[3, 4]| ``` will result in ```      5 ```