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

1-Newbie

## Solving a system of 5 equations with 7 variables

I find myself constantly using a system of 5 equations with 7 different variables. I always know two of the variables, but the two that I know changes. Is there a way to write a single calculator that can solve for the unknowns instead of writing a different calculator for each combination?

equations:

mt=mf+mw

c=mf/mt

vf=mf/8.34

vw=mw/8.34

vt=vf+vw

Using the solve function only lets me solve for unknowns, so I'd have to rewrite the unknowns each time.

Using the find function requires me to guess, but I don't know how to distinguish from a known and a guess.

I could use if statements, but I'd have to write a huge set of formulas, which isn't ideal.

Any help would be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald II
(To:dthunes)

Something like this:

Success!

Luc

45 REPLIES 45
23-Emerald II
(To:dthunes)

Something like this:

Success!

Luc

24-Ruby V
(To:dthunes)

You can turn Luc's solution into a function with the two conditions (the two known variable values) as arguments.

I add those equations to Luc's EQ and solve this system for all 7 variables, so you always get all 7 variables as result.

Drawback is that you have to evaluate this function symbolically.

24-Ruby III
(To:dthunes)

2 equations, 3 unknowns - my solution

24-Ruby III
(To:ValeryOchkov)

By help user function creating and using:

13-Aquamarine
(To:ValeryOchkov)

Valery,

Can you explain me, how your Equation System will be solved symbolical by MathCad?

I tryed to reproduce it, but it fails...

I have Prime 3.1

Thank you

Volker

Volker
24-Ruby V
(To:vlehner)

Guess you can find the sheet here -> Plot of a Function-vector-matrix

13-Aquamarine
(To:Werner_E)

Werner,

Thanks for the Link, but when i recalculate the sheet, the error occurs like mine.

I guess it is a MathCad-Problem in Version 3.1

Volker
24-Ruby III
(To:vlehner)

23-Emerald II
(To:vlehner)

Volker, what exactly is the error message that you get?

If it is "This is a premium feature. ..." then you don't have the full Prime 3.1, but (like me) the free Express Prime, which lacks a good deal of features....

Luc

13-Aquamarine
(To:LucMeekes)

I got this Message:

"This Syntax is incomprehensible"

Volker
24-Ruby III
(To:vlehner)

24-Ruby V
(To:ValeryOchkov)

AFAIK you are using P3.1. Can you confirm, that this sheet of yours which I linked to works OK in Prime 3.1?

@Volker

Can you solve other equations and system of equations with your installation of Prime 3.1?

If not, you may consider a reinstallation or at least a repair.

13-Aquamarine
(To:Werner_E)
other systems of equations work perfectly:
Volker
24-Ruby V
(To:vlehner)

Hmmm, when I retype in Prime 3.0 what Valery and you have shown in your screenshots, all is working as expected.

I attach the file - see if it works OK for you in P31, too, when you recalculate the sheet.

13-Aquamarine
(To:Werner_E)

I loaded your Worksheet an the Error occurs like happend in my posts:

Error Message: The Syntax is incomprehensible.

....very strange...

I hope the bugs will be fixed in the next Version of MathCad!

The developer should keep former working features an functions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Volker
24-Ruby V
(To:vlehner)

So obviously its really a bug which is not present in Prime 3.0 and was freely introduced with version 3.1.

I thought that 3.1 was shot out just because they implemented a better integration with Creo. Wonder how this would influence the symbolics.

Anyway, looks like Valery already reported that bug to PTC.

Not that we would need it, but one more reason to stay happy with MC 15.

24-Ruby III
(To:Werner_E)
 Werner Exinger написал: Not that we would need it, but one more reason to stay happy with MC 15.

In Russian: Старый конь борозды не испортит!

In English: An old ox ploughs a straight furrow!

In German: ???

24-Ruby V
(To:ValeryOchkov)

In German it would be "Alte Ochsen ziehen gerade Furchen."

But the problem with Prime is not that its new. Its simply of inferior poor quality.

24-Ruby III
(To:Werner_E)

Каждая пословица имеет продолжение.

Старый конь борозды не испортит. ...Но скоро сдохнет.

Each proverb has continued.

Old horse does not spoil a furrow . ...But it will soon die.

The origin proverb is

Старый конь глубоко не пашет, но и борозды не испортит!

Так у нас иногда дамы говорят о своих пожилых любовниках

24-Ruby III
(To:ValeryOchkov)

Two my horses: new Surface 4 with old Mathcad 15 and old Surface 3 with new Mathcad Prime

13-Aquamarine
(To:ValeryOchkov)

Or: "never touch a running system..."

Hope the bugs will be fixed soon!!!!

Whats up?! We are paying a lots of money

Volker
24-Ruby III
(To:Werner_E)

Werner!

I have opened your sheet - all OK. Recalculate - not ok, delete H - ok, but of course error with units. I have sent a message about this bug to PTC.

13-Aquamarine
(To:ValeryOchkov)

Valery,

here my worksheet-MathCad Prime 3.1 is used.

Happy New Year to all !!!

Greets Volker

Volker
24-Ruby III
(To:vlehner)

Sorry, I think it is a bug in Prime

I have converted a normal Mathcad 15 sheet and get same error

23-Emerald II
(To:vlehner)

Mathcad 11 solves it without problems:

Then you can plot:

Success!
Luc

24-Ruby III
(To:LucMeekes)

Luc!

Val

23-Emerald II
(To:ValeryOchkov)

Here you go Valery.

Regards,

Luc

24-Ruby III
(To:LucMeekes)
24-Ruby III
(To:ValeryOchkov)

Other same problem from the "Gamer" of Dostoevsky - price of currency

Announcements