Table of Contents

Abs

This applies the absolute function to a single parameter either a scalar, vector, or matrix.

\[ A = \begin{bmatrix} -1 & 2 \\\\ 3 & -4 \end{bmatrix}, B = \begin{bmatrix} 2 & 4 \\\\ 6 & 8 \end{bmatrix}, C = \begin{bmatrix} -1 \\\\ 3 \end{bmatrix}, D = \begin{bmatrix} -1 & 3 \end{bmatrix} \]

Abs(Scalar) = Scalar

\[ Abs(-1) = 1 \]
\[ Abs(1) = 1 \]

Abs(Vector) = Vector

The orientation of the vector will be maintained in the resulting vector.

\[ Abs(C) = \begin{bmatrix} 1 & 3 \end{bmatrix} \]

Abs(Matrix) = Matrix

\[ Abs(A) = \begin{bmatrix} 1 & 2 \\\\ 3 & 4 \end{bmatrix} \]