CASTI-89 TITANIUM · CALC89

rowSwap(

Swaps two rows of a matrix and returns the new matrix.

Syntax

rowSwap(matrix, row1, row2)

Group
Matrix
Arguments
Takes the matrix and the numbers of the two rows.
Availability
Included
Menu path
MATH ▸ Matrix ▸ rowSwap(

Example

InputResult
rowSwap([[1,2,3][4,5,6][7,8,9]],1,3)[[7,8,9][4,5,6][1,2,3]]

Typing rowSwap([[1,2,3][4,5,6][7,8,9]],1,3) on the home screen and pressing ENTER returns [[7,8,9][4,5,6][1,2,3]].

Keystrokes on the TI-89 Titanium

2NDMATH4▶▼×13ENTER

The same key sequence inserts rowSwap( in Calc89, and the AI tutor shows it step by step on the on-screen keypad.

Related commands