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
- :
- Solving equations using using arrays

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

Highlighted

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

09-22-2014
09:59 AM

09-22-2014
09:59 AM

The attached contains an expression I wish to use in a solver to determine x-amount of constants (the Q's) from a system of an equal amount of equations and unknowns (the constants). The problem in mathcad arises when I'm using multiple (two) arrays within the solve block.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

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

09-25-2014
09:51 AM

09-25-2014
09:51 AM

As already suggested, get rid of the summation and the indexing.

13 REPLIES 13

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

09-22-2014
10:08 AM

09-22-2014
10:08 AM

Re: Solving equations using using arrays

You will have to specify a value for n first.

You will also have to provide at least a sample for the vector u and the square matrix lamda.Q so we have soemthing to play with.

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

09-22-2014
10:16 AM

09-22-2014
10:16 AM

Re: Solving equations using using arrays

Can it be that you are looking for something like the attached?

EDIT: Of course you can get the result much easier using the inverse:

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

09-22-2014
10:52 AM

09-22-2014
10:52 AM

Re: Solving equations using using arrays

Something like that but I need to include summation over one of the indices.

"Funny" thing is I got it working a few minutes ago but the Mathcad shut down spontaneously and I can't get it working again. The error message is:"This variable is undefined"

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

09-22-2014
11:13 AM

09-22-2014
11:13 AM

Re: Solving equations using using arrays

What you set up with your sum is exactly the multiplication of the matrix lamda.Q with the vector Q - thats the reason I posted my sheet in the last message.

The error messages in solve blocks are misleading - you will always get that "undefined variable", no matter what the real cause is. Right klick at the error message and chose "Trace Error" to get at least a message which may be a bit more useful.

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

09-25-2014
08:14 AM

09-25-2014
08:14 AM

Re: Solving equations using using arrays

I've entered exactly what you you did in the attached but I still get that same error. It can be traced to the "i" index that supposedly has to be an integer.

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

09-25-2014
08:17 AM

09-25-2014
08:17 AM

Re: Solving equations using using arrays

Please post your worksheet.

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

09-25-2014
08:32 AM

09-25-2014
08:32 AM

Re: Solving equations using using arrays

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

09-25-2014
08:35 AM

09-25-2014
08:35 AM

Re: Solving equations using using arrays

Please post the actual worksheet an image is no good in this instance.

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

09-25-2014
08:38 AM