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_list

Function: read_list (<S>)

plot2d(sin(x),[x,-5,5]);
load (descriptive);
 s1 : read_list (file_search ("pidigits.data"));
 histogram (                     s1,                     nclasses     = 8,                     title        = "pi digits",                     xlabel       = "digits",                     ylabel       = "Absolute frequency",                     fill_color   = grey,                     fill_density = 0.6);

Function: read_list (<S>, <L>)

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

Function: read_list (<S>, <L>, <separator_flag>) read_list(<S>) reads the source <S> and returns its entire content as a flat list.

read_list(<S>, <L>) reads the source <S> into the list <L>, until <L> is full or the source is exhausted.

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

read_list

? read_list;

Calculate

read_list

? read_list;

Calculate