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

Online Help

All Products    Maple    MapleSim


MTM

  

power

  

element-wise power

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

power(M1,M2)

Parameters

M1

-

array

M2

-

array

Description

• 

The power(M1,M2) function performs an element-wise exponentiation of M1 to the power M2.  The result, R, is formed as R[i,j] = M1[i,j] ^ M2[i,j].

• 

Arrays M1 and M2 must be the same size.

Examples

withMTM:

M1Matrix2,3,fill=2:

M2Matrix2,3,fill=2:

powerM1,M2

444444

(1)

See Also

MTM[mpower]