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:

Read_matrix

Function: read_matrix (<S>)

Function: read_matrix (<S>, <M>)

Function: read_matrix (<S>, <separator_flag>)

Function: read_matrix (<S>, <M>, <separator_flag>) read_matrix(<S>) reads the source <S> and returns its entire content as a matrix. The size of the matrix is inferred from the input data; each line of the file becomes one row of the matrix. If some lines have different lengths, read_matrix complains.

read_matrix(<S>, <M>) read the source <S> into the matrix <M>, until <M> is full or the source is exhausted. Input data are read into the matrix in row-major order; the input need not have the same number of rows and columns as <M>.

The source <S> may be a file name or a stream.

The recognized values of <separator_flag> are comma, pipe, semicolon, and space. If <separator_flag> is not specified, the file is assumed space-delimited.

(%o1)                                true
(%i2) 

Related Examples

matrix-nullspace

m:matrix([(3 + (33)^(...

nullspace(m);

Calculate

matrix

sina(a) := sin(a);

cosa(a) := cos(a);

rotx: matrix([1, 0, 0...

Calculate

matrix-sin-taylor

psin(x):=x;

psinh(x):=x;

pcos(x):=1-x^2/2;

Calculate

matrix

a: matrix([0,0,1,1,1]...

a.a;

a.a.a;

Calculate

matrix

m=matrix([1,2],[3,4]);

Calculate

matrix

x: matrix ([(4*x^4+x*...

Calculate

matrix

D: matrix ([d1, 0], [...

X: matrix ([0.8],[1.2...

F: matrix ([400.0]);

Calculate

matrix-permanent

a: matrix ([1,0,0,1,0...

permanent(a);

Calculate

matrix-nullspace

m:matrix([1,-2,1],[2,...

nullspace(m);

m1:matrix([a,b,c],[a,...

Calculate