power - Maple Help

MTM

 power
 element-wise power

 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

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $\mathrm{M1}≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=2\right):$
 > $\mathrm{M2}≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=2\right):$
 > $\mathrm{power}\left(\mathrm{M1},\mathrm{M2}\right)$
 $\left[\begin{array}{ccc}{4}& {4}& {4}\\ {4}& {4}& {4}\end{array}\right]$ (1)