### The Maxima on-line user's manual

Algebra Calculator

#### Makelist

Function: makelist (<expr>, <i>, <i_0>, <i_1>)

Function: makelist (<expr>, <x>, <list>) Constructs and returns a list, each element of which is generated from <expr>.

makelist (<expr>, <i>, <i_0>, <i_1>) returns a list, the jth element of which is equal to ev (<expr>, <i>=j) for j equal to <i_0> through <i_1>.

makelist (<expr>, <x>, <list>) returns a list, the jth element of which is equal to ev (<expr>, <x>=<list>[j]) for j equal to 1 through length (<list>).

Examples:

(%i1) makelist(concat(x,i),i,1,6);
(%o1)               [x1, x2, x3, x4, x5, x6]
(%i2) makelist(x=y,y,[a,b,c]);
(%o2)                 [x = a, x = b, x = c]

(%o1)                                true
(%i2)

### Related Examples

##### makelist-numer

x[1]:31/4;

x[n]:=(5+4*x[n-1])^(1...

folge:makelist([n,x[n...

Calculate

##### makelist

makelist(-2*i+0.1,i,-...

Calculate

##### makelist

makelist(i*13,i,1,10);

Calculate

##### makelist-plot2d

u:[-2.243019, -2.2176...

plot2d([discrete, ...

Calculate

##### makelist-plot2d-sum

lista1:makelist(n,n,1...

lista2:[1,3,5,7,9,11];

soma:sum(lista1[n],n,...

Calculate

##### makelist-next_prime-primep

next_prime(229);

makelist(primep(a+i*d...

Calculate

a:2;

b:3;

n:200;

Calculate

##### makelist

makelist(i,i, -3,3).m...

Calculate

##### makelist-setify

setify(makelist(k, k,...

Calculate

##### makelist-primep

makelist(primep(a+(k-...

Calculate