Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
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.
![Join Example l1: [a, sin(b), c!, d - 1];
join (l1, [1, 2, 3, 4]);
join (l1, [aa, bb, cc, dd, ee, ff]);](http://maxima-online.org//plot.html?g=i464966774.png&t=img&db=r400515752)
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)