# Function Cswp - HP 50g User Manual

Graphing calculator.

In RPN mode, enter the matrix first, then the vector, and the column number,
before applying function COL+. The figure below shows the RPN stack before
and after applying function COL+.
Function COL-
Function COL- takes as argument a matrix and an integer number representing
the position of a column in the matrix. Function returns the original matrix minus
a column, as well as the extracted column shown as a vector. Here is an
example in the ALG mode using the matrix stored in A:
In RPN mode, place the matrix in the stack first, then enter the number
representing a column location before applying function COL-. The following
figure shows the RPN stack before and after applying function COL-.

## Function CSWP

Function CSWP (Column SWaP) takes as arguments two indices, say, i and j,
(representing two distinct columns in a matrix), and a matrix, and produces a
new matrix with columns i and j swapped. The following example, in ALG
mode, shows an application of this function. We use the matrix stored in
variable A for the example. This matrix is listed first.
Page 10-20