cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

15-Moonstone

## Inverse issue?

I met something strange

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald III
(To:ifomenko)

It is simply the 'inverse' of each element of your vector (so vectorization is implicit here). That's the only way way Mathcad can produce an answer that is not an error message.

The help on Matrix inverse is:

# Matrix Inverse Operator

Keystroke: ^-1

This returns the inverse of a matrix. If M does not have an inverse, you'll see an appropriate error message.

#### Operands:

• M is a square matrix having an inverse.

Your multiplication A * A^-1 results in 3, because A has three elements.

The symbolic (Maple) processor complains that the matrix should be square...

Success!

Luc

6 REPLIES 6
21-Topaz II
(To:ifomenko)

Hi

It is wrong to define the matrix operator with square brackets. not [A] but simply A - although it is possible - and many ancient texts define it with square brackets. The inverse of a vector makes no sense.

23-Emerald III
(To:-MFra-)

There's nothing wrong about that. It's the OP's method of marking matrices and vectors.

23-Emerald III
(To:ifomenko)

It is simply the 'inverse' of each element of your vector (so vectorization is implicit here). That's the only way way Mathcad can produce an answer that is not an error message.

The help on Matrix inverse is:

# Matrix Inverse Operator

Keystroke: ^-1

This returns the inverse of a matrix. If M does not have an inverse, you'll see an appropriate error message.

#### Operands:

• M is a square matrix having an inverse.

Your multiplication A * A^-1 results in 3, because A has three elements.

The symbolic (Maple) processor complains that the matrix should be square...

Success!

Luc

23-Emerald III
(To:LucMeekes)

15-Moonstone
(To:LucMeekes)
Thanks, but it's wrong behavior
24-Ruby V
(To:ifomenko)

@ifomenko wrote:
Thanks, but it's wrong behavior

Yes, from a math point of view we would expect an error message instead of a result.

To be able to interpret the result we have to know, that Mathcad will switch into automatic (implicit) vectorization whenever the operation will make no mathematical sense when applied to vector or matrices.
Many people find Mathcads implicit vectorization quite convenient but personally I'd prefer to explicitly use vectorization even though Mathcad would apply it implicitly on its own.

As you can see in the screenshot, the symbolic processor is more strict and requires explicit vectorization:

Announcements