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_hashed_array

Function: read_hashed_array (<S>, <A>)

array (A, 2, 3);
read_array (file_search ("array.data"), A, comma);
arraylist (A);
A;
read_hashed_array (file_search ("array.data"), B, comma);
arraylist (B);
B[Schmidt];

Function: read_hashed_array (<S>, <A>, <separator_flag>) Reads the source <S> and returns its entire content as a hashed array. The source <S> may be a file name or a stream.

read_hashed_array treats the first item on each line as a hash key, and associates the remainder of the line (as a list) with the key. For example, the line 567 12 17 32 55 is equivalent to A[567]: [12, 17, 32, 55]$. Lines need not have the same numbers of elements.

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

array

array([arrx,arry],101);

i:0;

for x: 0 step %pi/50 ...

Calculate

array-display2d-expand-false-plot2d
plot2d([[discrete, p],f(x)], [x,1,3.6], [style, points, lines],  [color, red, blue], [point_type, asterisk],  [legend, "data", "approximation"], [xlabel, "x"], [ylabel, "y"]);

p:[[1.3,0.25],[1.15,3...

display2d:false;

n:6;

Calculate

array

array(a,2,3,4);

array(b,1);

a;

Calculate

array-do-if-listarray-plot2d-sin
plot2d([f,[discrete,[rx,ry]]],[x,0,6.28],[style,lines,points]);

array(rs,float,5);

i:0;

f(x):=sin(x);

Calculate

array-expand-plot2d
plot2d([[discrete, p],f(x)], [x,1.0,3.3], [style, points, lines], [color, red, blue], [point_type, asterisk], [legend, "data", "approximation"], [xlabel, "x"], [ylabel, "y"]);

p:[[1.7,0.75],[1.65,2...

n:6;

array (d, n, n);

Calculate

array

array(T, 901);

array(N_c, 901);

array(N_v, 901);

Calculate

array-draw-draw2d-load-make_array-points-random
draw2d(points(a));

load(draw);

a: make_array (flonum...

for i:0 thru 99 do a[...

Calculate

array

array(arr,2,101);

i:0;

for x: 0 step %pi/50 ...

Calculate

array-block-cos-float-floor-mod-random-sin-subst

array(data,16,16,16);

for i: 0 thru 7 do f...

data[0,0,0] = data[8,...

Calculate