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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Inverse issue?

ifomenko
15-Moonstone

Inverse issue?

I met something strange

Vector inverse.png

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
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

 
 
 

View solution in original post

6 REPLIES 6
-MFra-
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.

LucMeekes
23-Emerald III
(To:-MFra-)

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

LucMeekes
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

 
 
 
LucMeekes
23-Emerald III
(To:LucMeekes)

LucMeekes_0-1584557492936.png

 

ifomenko
15-Moonstone
(To:LucMeekes)

Thanks, but it's wrong behavior


@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:

Werner_E_0-1584562100679.png

 

Top Tags