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
- :
- Re: Mathcad fails to solve symbolic system of equa...

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

02-14-2019
05:19 PM

02-14-2019
05:19 PM

Hello.

Before anything, I got to say that I searched the whole forum for similar questions (which existed), and tried to apply them to my case, but none worked!

I attached files (one is Mathcad15 and the other is Prime 5 file format) with system of equations that I need to solve symbolically, and then attribute this solution to a function.

The system of equations has x's, a's, z's and a y variable. The goal is to define y as a function of x's and a's, but no z's.

I failed to do it multiple times: sometimes Mathcad just crashs, other times it just says some variables are not defined...

Could someone please help me? This is the first thing I'm ever trying to do using Mathcad!

Thank you very much!

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

03-14-2019
02:43 AM

03-14-2019
02:43 AM

So I tried to solve a 20x20 similar linear system in both Mathcad and Matlab.

Matlab was able to solve it under 5 minutes. I let Mathcad running for 8 hours and nothing...

8 REPLIES 8

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

02-14-2019
05:58 PM

02-14-2019
05:58 PM

Re: Mathcad fails to solve symbolic system of equations and put it in a function!

I may have made a mistake in retyping, otherwise your system is not complete. You need to solve for z1 through z8 AND y, you only have 8 equations. You need one more to solve the 9 unknowns:

(Note that the picture is chopped off at the right side. It's very very wide....)

Success!

Luc

Highlighted
##

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

02-14-2019
05:59 PM

02-14-2019
05:59 PM

Re: Mathcad fails to solve symbolic system of equations and put it in a function!

> The system of equations has x's, a's, z's and a y variable. The goal is to define y as a function of x's and a's, but no z's.

This would mean that you want to solve your system for the eight z's and for y.

That makes nine variables to solve for but only eight equations!

This means that you have one degree of freedom. In other words - the solution(s) probably aren't unique!

To define the Function Y you are looking for, you don't need a symbolic solution of your system. If you are just looking for one of the multiple solutions you may use a parametrized numeric solve block - you'll have to provide suitable guess values if you do so.

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

02-14-2019
06:25 PM

02-14-2019
06:25 PM

Re: Mathcad fails to solve symbolic system of equations and put it in a function!

Here is what i was talking about:

Mathcad 15 file attached

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

02-15-2019
01:51 AM

02-15-2019
01:51 AM

Re: Mathcad fails to solve symbolic system of equations and put it in a function!

Hi Werner.

Actually, I will perform some manipulation on the symbolic results before evaluating its numerical value.

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

02-15-2019
01:55 AM

02-15-2019
01:55 AM

Re: Mathcad fails to solve symbolic system of equations and put it in a function!

The strange thing is that this is a model for a real world system. I cannot find any other equation/relationship as to maintain the system's fidelity.

I could find a solution, but it was doing:

z1 = y/2

z2 = -y/2

But i really don't know the value of z1 and z2, I only know that their difference (z1-z2) is equal y.

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

02-15-2019
04:44 AM

02-15-2019
04:44 AM

Re: Mathcad fails to solve symbolic system of equations and put it in a function!

I have considered y a known term. then I continued the calculation like this:

You can do the calculation (here I've considered y as unknown) even so:

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

03-14-2019
02:43 AM

03-14-2019
02:43 AM

So I tried to solve a 20x20 similar linear system in both Mathcad and Matlab.

Matlab was able to solve it under 5 minutes. I let Mathcad running for 8 hours and nothing...

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

03-14-2019
07:19 AM

03-14-2019
07:19 AM

Re: Mathcad fails to solve symbolic system of equations and put it in a function!

Can you share the 20x20 system (Mathcad file)?

Luc

Luc

Top Tags