unsupported type of index - Maple Help

Home : Support : Online Help : System : Error Message Guide : unsupported type of index

Error, unsupported type of index, n

 Description 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.)

Examples

Summation of elements of a Vector:

 > V:= Vector(5,{(1)=1,(2)=2,(3)=3,(4)=4,(5)=5}):
 > $\mathrm{sum}\left(V\left(n\right),n=1..5\right)$

Summation of elements of an Array:

 > $A≔\mathrm{Array}\left(\left[2,4,6\right]\right):$
 > $\mathrm{sum}\left(A\left(n\right),n=1..3\right)$