Previous Up Next

14.3.10  Hadamard power

The infixed operator .^ finds the Hadamard power of a matrix or list A to a real number b; namely, it returns the matrix or the list where each element is the corresponding element of A raised to the bth power.

Example

[[1,2],[3,4]].^2
     


14
916


          

Previous Up Next