Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Rowswap

Function: rowswap (<M>, <i>, <j>) If <M> is a matrix, swap rows <i> and <j>. If <M> doesnt have a row <i> or <j>, signal an error.

T:matrix([-2,0,1,-1],[5,0,0,2],[4,1,1,-3]);
T1:rowop(T,2,1,T[1,1]);
T2:rowswap(T1,1,2);
T3:rowop(T2,2,1,-2);
T4:rowop(T3,3,1,4);
T5:rowswap(T4,2,3);
T6:rowop(T5,3,1,0);

(%o1)                                true
(%i2) 

Related Examples