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:

Ematrix

Function: ematrix (<m>, <n>, <x>, <i>, <j>) Returns an <m> by <n> matrix, all elements of which are zero except for the [<i>, <j>] element which is <x>.

n:9;
h[i,j]:= if mod(i-j,n)=1 or mod(j-i,n)=1 then 1/2 else 0;
M:genmatrix (h,n,n);
p: ematrix(n,1,0,1,1);
p[6][1]:1;
plp(i,j):=((M^^j).p)[i][1];
pl:makelist(makelist(plp(i,j-1),j,1,12),i,1,n);
im: apply(

There are also some inexact matches for ematrix. Try ?? ematrix to see them.

(%o1)                                true
(%i2) 

Related Examples