Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Errors working with a largematrix

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-04-2013
10:49 PM

12-04-2013
10:49 PM

Errors working with a largematrix

Z is a 51 row X 3 column matrix. I need to obtain the 51 X 51 matrix H = Z(Z'Z)^(-1)Z', where ' denotes transpose and ^(-1) means inverse. H is idempotent, so as a check, either H'H or HH' should yield an identity matrix. Straightforward evaluation of H evidently yields an incorrect result, as H'H is not an identity matrix.. Can MathCad handle matrices this large? Or are there special procedures for dealing with such matrices?

Labels:

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-04-2013
11:11 PM

12-04-2013
11:11 PM

Re: Errors working with a largematrix

Matrices of that size should be no problem for Mathcad or for Prime and there are no special treatments.

Why don't you tell us which version of Mathcad or Prime you are using and why not attach your worksheet showing what you think is wrong?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-04-2013
11:39 PM

12-04-2013
11:39 PM

Re: Errors working with a largematrix

Sorry, I just read your post more carefully.

H is idempotent, so as a check, either H'H or HH' should yield an identity matrix.

Why? Doesn't idempotent simply mean that H^2 = H?

This is true for H: