Error, unsupported type of index, n
Description
Examples
See Also
The add command in Maple is used for adding an explicit sequence of values (in particular for list, Array, Matrix, or Vector), whereas the sum command is intended for symbolic summation. You will get this error message when the sum command is used to compute summation of aforementioned data structures instead of the add command.
Summation of elements of a Vector:
V:= Vector(5,{(1)=1,(2)=2,(3)=3,(4)=4,(5)=5}):
sum⁡V⁡n,n=1..5
Summation of elements of an Array:
A≔Array⁡2,4,6:
sum⁡A⁡n,n=1..3
Solution: Use add instead of sum.
add⁡V⁡n,n=1..5
15
add⁡A⁡n,n=1..3
12
add, sum
Download Help Document