exponentiation operation not defined for Vectors - 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 : exponentiation operation not defined for Vectors

Error, (in rtable/Power) exponentiation operation not defined for Vectors

 

Description

Examples

Description

This error message indicates that the exponentiation operation is not defined for Vectors, for example,  A<1&comma; 2&comma; 3&gt;2 will produce an error. As such, when attempting division such as AB,  Maple does not compute AB  but instead tries to compute AB1 . In trying to raise B to the exponent -1, this produces an error.

Examples

In the following example, it is not clear whether element-wise division or the creation of a matrix is intended.

A:=<1&comma;2&comma;3&gt;&semi;B:=<4&comma;5&comma;6&gt;&semi;

AB

Error, (in rtable/Power) exponentiation operation not defined for Vectors

Solution:
To apply an operation, you must use the zip or LinearAlgebra[Zip] commands.

 

zip&lpar;`/`&comma;A&comma;B&rpar;&semi;

LinearAlgebra&lsqb;Zip&rsqb;&lpar;`/`&comma;A&comma;B&rpar;&semi;

For more information on the key data structures in Maple, see the User Manual, Chapter 8 and the help pages for expression sequences, sets, lists, tables, Arrays, Matrices, Vectors, functional operators, and strings.

See Also

Arrays

expand

expression sequences

functional operators

LinearAlgebra[Zip]

lists

Matrices

sets

strings

tables

User Manual, Chapter 8

Vectors

zip