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:

Join Calculator

Join

Function: join (<l>, <m>) Creates a new list containing the elements of lists <l> and <m>, interspersed. The result has elements [<l>[1], <m>[1], <l>[2], <m>[2], ...]. The lists <l> and <m> may contain any type of elements.

l1: [a, sin(b), c!, d - 1];
 join (l1, [1, 2, 3, 4]);
 join (l1, [aa, bb, cc, dd, ee, ff]);

If the lists are different lengths, join ignores elements of the longer list.

Maxima complains if <l> or <m> is not a list.

Examples:

          (%i1) L1: [a, sin(b), c!, d - 1];
          (%o1)                [a, sin(b), c!, d - 1]
          (%i2) join (L1, [1, 2, 3, 4]);
          (%o2)          [a, 1, sin(b), 2, c!, 3, d - 1, 4]
          (%i3) join (L1, [aa, bb, cc, dd, ee, ff]);
          (%o3)        [a, aa, sin(b), bb, c!, cc, d - 1, dd]

There are also some inexact matches for join. Try ?? join to see them.

(%o1)                                true
(%i2) 

Join Example

Related Examples

join

a:[1,2,3];

b:[4,5,6];

join(a,b);

Calculate

join-sin

L1: [a, sin(b), c!, d...

join (L1, [1, 2, 3, ...

join (L1, [aa, bb, c...

Calculate

join-sin

l1: [a, sin(b), c!, d...

join (l1, [1, 2, 3, ...

join (l1, [aa, bb, c...

Calculate