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:

Makelist Calculator

Makelist

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

fpprintprec:5;
 u0:0;
 u1:15;
 u2:5;
 u3:3;
 u4:2;
 T:2;
j:makelist(j,j,[15,5,3,2]);
 k:4;
 xn:0;
xk:%pi;
N:11;
dx:(xk-xn)/(N-1),numer;
Uvx(x):=u0+s:sum(j*cos((2*%pi*j)/T),j,1,k), numer;
for x:xn thru xk step dx do display(Uvx(x)),numer;

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) 

Makelist Example

Related Examples

makelist

makelist(A[i]*x^i, i,...

Calculate

makelist

makelist(2, i, 1, 5);

Calculate

makelist

makelist(I^2,i,1,5);

Calculate

makelist-sin

H(x,y) := sin(%pi*(2*...

makelist(makelist(H(x...

H(0,0);

Calculate

makelist-random

makelist(random(n), n...

Calculate

makelist

makelist((6^j/2^j+8^j...

Calculate

makelist-random

makelist(random(5 * i...

Calculate

makelist

makelist((6^j/2^j+8^j...

Calculate

makelist

makelist(i^2,i,1,100);

Calculate

makelist

makelist(i, i, -2, 5);

Calculate