Skip to content
Property Value
Hex Value $15
Categories
Localizations
  • FR: permutLigne(

rowSwap(

Overview

Returns a matrix with rowA of matrix swapped with rowB.

Availability: Token available everywhere.

Syntax

rowSwap(matrix,rowA,rowB)

Arguments

NameTypeOptional
matrixmatrix
rowA
rowB

Location

2nd, matrix, MATH, C:rowSwap(


Description

The rowSwap( command swaps two rows of a matrix and returns the result. It is an elementary row operation used in Gaussian Elimination.

[[1,2][3,4]]
    [[1 2]
     [3 4]]
rowSwap(Ans,1,2)
    [[3 4]
     [1 2]]

Advanced Uses

You can swap columns instead of rows with the aid of the T (transpose) command.

Error Conditions

  • ERR:INVALID DIM is thrown if one of the row arguments isn't a valid row (larger than the matrix size, or otherwise bad)

Source: parts of this page were written by the following TI|BD contributors: DarkerLine, GoVegan.

History

Calculator OS Version Description
TI-82 1.0 Added

Last update: September 30, 2023 15:38:51
Created: February 23, 2023 23:15:01
Authors: Adrien Bertrand