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:16;
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,1,1,1);
plp(i,j):=((M^^j).p)[i][1];
p100: makelist(plp(1,j-1),j,1,100);
load(draw);
draw2d(point_type=6,point_size=1,points_joined = true,points(p100))

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

(%o1)                                true
(%i2) 

Related Examples