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:

Columnswap

Function: columnswap (<M>, <i>, <j>) If <M> is a matrix, swap columns <i> and <j>. If <M> doesnt have a column <i> or <j>, signal an error.

A: matrix([a1, b1, c1, 0, 0,d1],[0, a2, b2,c2,0,d2],[0,0,a3,b3,c3,d3]);
A: columnswap(A,2,3);
 A: columnswap(A,1,2);
 A: rowswap(A,2,3);
 A: rowswap(A,1,2);
A[2]: A[1]*A[2,1]-A[2]*A[1,1];
 A[3]: A[1]*A[3,1]-A[3]*A[1,1];
 A;
array(Equat,2);
 array(val,4);
val: matrix([x[1]], [x[2]], [x[4]], [x[5]]);
Equat[1]: submatrix(1,3,A,1,6).val+A[2,6];
Equat[2]: submatrix(1,2,A,1,6).val+A[3,6];

(%o1)                                true
(%i2) 

Related Examples