CONCAT

LIST

CONCAT(L1,L2). An argument can be either a list variable name (such as L1) or the actual list. For example, REVERSE({1,2,3}).

If Decimal Mark in Modes is set to Comma, use periods to separate arguments. For example,

CONCAT(L1.L2).

Common operators like +, –, ×, and / can take lists as arguments. If there are two arguments and both are lists, then the lists must have the same length, since the calculation pairs the elements. If there are two arguments and one is a real number, then the calculation pairs the number with each element of the list.

Example

5*{1,2,3} returns {5,10,15}.

Besides the common operators that can take numbers, matrices, or lists as arguments, there are commands that can only operate on lists.

Concatenates two lists into a new list.

CONCAT(list1,list2)

Example

CONCAT({1,2,3},{4}) returns {1,2,3,4}.

Creates a new list composed of the first differences, that is, the differences between the sequential elements in list1. The new list has one fewer elements than list1. The first differences for {x1 x2 ... xn} are {x2–x1 ...xn–xn–1}.

LIST(list1)

Lists

16-7