unsupported type of index - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

Error, unsupported type of index, n

 

Description

Examples

See Also

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}):

sumVn,n=1..5

Error, unsupported type of index, n

 

Summation of elements of an Array:

AArray2,4,6:

sumAn,n=1..3

Error, unsupported type of index, n

 

Solution: Use add instead of sum.

addVn,n=1..5

15

(2.1)

addAn,n=1..3

12

(2.2)

See Also

add, sum