MathematicalFunctions[Sequences]
Add
add the elements of a sequence or add to the elements of a symbolic sequence
Differentiate
differentiate the elements of a symbolic sequence
Map
map an operation to the elements of a symbolic sequence
Multiply
multiply the elements of a sequence or multiply to the elements of a symbolic sequence
Nops
count the elements of a symbolic sequence
Calling Sequence
Parameters
Description
Examples
Compatibility
Add(S)
Differentiate(S, t)
Map(P, S)
Multiply(S)
Nops(S)
S
-
sequence
t
variable name
P
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
n,...,m
2. A sequence of one object, say a, repeated say p times, frequently displayed as
a,...,a⏟
3. A more general sequence, as in 1., but of different objects and not necessarily numbers, frequently displayed as
an,...,am
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.
with⁡MathematicalFunctions:-Sequences
Add,Differentiate,Map,Multiply,Nops
To display symbolic sequences as in textbooks use extended typesetting:
interface⁡typesetting=extended:
Consider now the three forms of symbolic sequences mentioned in the Description:
S__1≔`$`⁡n..m
S__1≔n,...,m
S__2≔`$`⁡a,p
S__2≔a,...,a⏟p times
S__3≔`$`⁡ai,i=n..m
S__3≔an,...,am
The number of operands of these sequences
Nops⁡S__1
m−n+1
Nops⁡S__2
p
Nops⁡S__3
Add the elements of these sequences
Add⁡S__1
m−n+1⁢n+m2
Add⁡S__2
a⁢p
Add⁡S__3
∑i=nm⁡ai
Multiply the elements of these sequences
Multiply⁡S__1
m!n−1!
Multiply⁡S__2
ap
Multiply⁡S__3
∏i=nm⁡ai
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
Differentiate⁡S__1,k
0,...,0⏟m-n+1 times
For the sequences of algebraic expressions S2 and S3,
Differentiate⁡S__2,a
1,...,1⏟p times
Differentiate⁡S__3,ak
1k=n0otherwise,...,1k=m0otherwise
Map an operation, say f, over the elements of S1
Map⁡f,S__1
f⁡n,...,f⁡m
Map actually works as map, i.e. you can map with extra arguments
Map⁡Int,S__1,x
∫nⅆx,...,∫mⅆx
Map is also useful to add to the elements of a sequence, or multiply each of them
Map⁡`+`,S__3,r
an+r,...,am+r
Map⁡`*`,S__2,r
a⁢r,...,a⁢r⏟p times
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.
See Also
add
diff
map
MathematicalFunctions
mul
nops
Sequences
Download Help Document