add the elements of a sequence or add to the elements of a symbolic sequence
differentiate the elements of a symbolic sequence
map an operation to the elements of a symbolic sequence
multiply the elements of a sequence or multiply to the elements of a symbolic sequence
count the elements of a symbolic sequence
procedure or function
The Add, Differentiate, Map, Multiply, and Nops commands perform operations on the three kinds of symbolic sequences implemented in the Maple system, namely:
1. A sequence of numbers - say from n to m - frequently displayed as
2. A sequence of one object, say a, repeated say p times, frequently displayed as
3. A more general sequence, as in 1., but of different objects and not necessarily numbers, frequently displayed as
or likewise a sequence of functions f⁡n,...,f⁡m. In all these cases, none of n, m, or p are known: they are just symbols, or algebraic expressions, representing integer values. These symbolic sequences are represented in Maple using the $ operator. To cases 1., 2. and 3. correspond, respectively, the input $(n .. m), a $ p and a[i] $ (i = n .. m).
Add and Multiply can either add or multiply the elements of a symbolic sequence (that is, receive only one operand), as well as add or multiply many elements, where possibly more than one is a symbolic sequence.
Nops generalizes nops in that if the single argument is a symbolic sequence, it returns the number of elements it contains expressed in terms of the symbols representing integers that define the sequence.
Differentiate and Map respectively generalize diff and map in that they work the same way as the lowercase commands, but when the first argumen,t in the case of Differentiate, or the second argument in the case of Map, is a symbolic sequence, the operation is applied in such a way that the result represents the operation applied to all the elements of the sequence.
To display symbolic sequences as in textbooks use extended typesetting:
Consider now the three forms of symbolic sequences mentioned in the Description:
S__1 ≔ `$`⁡n..m
S__2 ≔ a$p
S__3 ≔ ai$i=n..m
The number of operands of these sequences
Add the elements of these sequences
Multiply the elements of these sequences
Differentiate works as diff. For the sequence of numbers S1, the derivative with respect to anything is 0 and there are m−n+1 of them
For the sequences of algebraic expressions S2 and S3,
Map an operation, say f, over the elements of S1
Map actually works as map, i.e. you can map with extra arguments
Map is also useful to add to the elements of a sequence, or multiply each of them
The MathematicalFunctions[Sequences][Add], MathematicalFunctions[Sequences][Differentiate], MathematicalFunctions[Sequences][Map], MathematicalFunctions[Sequences][Multiply] and MathematicalFunctions[Sequences][Nops] commands were introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
Download Help Document