Pow

Parent Previous Next

Pow


Power



Syntax


Pow(x,y)

x is scalar, y is scalar

Return a scalar which is the x to power of y


x is matrix, y is scalar

Return a matrix in which the element is the power of the element in x to y


x, y are matrices of the same size

Return a matrix in which the element is the power of the element in x to the element in y


Example


Input

Output

pow(2, 2.5)

pow(1 + 2i, 2+i)

pow([1+i, 0, 1-i], 2)

pow([i, 1-3i; -2i, 5], -1.5)

pow([1,2;3,4],[2,3;1,0.5])


See Also


Created with the Personal Edition of HelpNDoc: Free Web Help generator