|
Calling Sequence
|
|
Add(S)
Differentiate(S, t)
Map(P, S)
Multiply(S)
Nops(S)
|
|
Parameters
|
|
S
|
-
|
sequence
|
t
|
-
|
variable name
|
P
|
-
|
procedure or function
|
|
|
|
|
Description
|
|
•
|
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 . 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.
|
|
|
Examples
|
|
>
|
|
| (1) |
To display symbolic sequences as in textbooks use extended typesetting:
>
|
|
Consider now the three forms of symbolic sequences mentioned in the Description:
>
|
|
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 , the derivative with respect to anything is 0 and there are of them
>
|
|
For the sequences of algebraic expressions and ,
>
|
|
>
|
|
| (16) |
Map an operation, say , over the elements of
Map actually works as map, i.e. you can map with extra arguments
>
|
|
| (18) |
Map is also useful to add to the elements of a sequence, or multiply each of them
>
|
|
>
|
|
|
|
Compatibility
|
|
•
|
The MathematicalFunctions[Sequences][Add], MathematicalFunctions[Sequences][Differentiate], MathematicalFunctions[Sequences][Map], MathematicalFunctions[Sequences][Multiply] and MathematicalFunctions[Sequences][Nops] commands were introduced in Maple 2016.
|
|
|
|