Error, (in rtable/Power) exponentiation operation not defined for Vectors
Description
Examples
This error message indicates that the exponentiation operation is not defined for Vectors, for example, A≔<1, 2, 3>2 will produce an error. As such, when attempting division such as AB, Maple does not compute AB but instead tries to compute AB−1 . In trying to raise B to the exponent -1, this produces an error.
In the following example, it is not clear whether element-wise division or the creation of a matrix is intended.
A:=<1,2,3>;B:=<4,5,6>;
AB
Solution: To apply an operation, you must use the zip or LinearAlgebra[Zip] commands.
zip(`/`,A,B);
LinearAlgebra[Zip](`/`,A,B);
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
Download Help Document