Search code examples
matrixmatrix-multiplicationwolframalpha

Using WolframAlpha, in matrix multiplication, why are "squared" and ^2 giving me different results?


"squared" input: {{0,1,0,0},{0.325,0,0.2875,0.3875},{0,1,0,0},{0,1,0,0}} squared

output:

enter image description here

"^2" input: {{0,1,0,0},{0.325,0,0.2875,0.3875},{0,1,0,0},{0,1,0,0}} ^2

output:

enter image description here


Solution

  • The squared operation simply squares all matrix elements.
    (cubed works in a similar way)

    Example:

    enter image description here

    The ^2 operation performs a matrix multiplication as expected.