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

SOLVED
Highlighted
Newbie

## solving system of equation with mathcad prime 2

Right now my mathcad is crashed but i will type the general format

I'm having issues with the following solve block, any pointers?

guess: X1:=0.1 X2:=0.1 X3:=0.1 X4:=0.1

Constraint: Tmp = 4100/(300-ln(X1))

Tmp= 6600/(500-ln(X2))

Tmp = 7000(450-ln(X3))

Tmp = 4100/(280-ln(X4))

x1+x2+x3+x4=1

Result:

T:=find(X1,X2,X3,X4)

I keep getting no solve. What am i doing wrong? I will attach a file when I can if my mathcad comes back up

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

## Re: solving system of equation with mathcad prime 2

What was your error message? If I write the system exactly as you have it it still works! Try going to Calculations Menu and press Calculate.

Alan

PS Uploading worksheet is better than just inserting an image. In top right-hand corner of editor is "Use advanced editor". At the bottom of the advanced editor you can insert worksheets.

8 REPLIES 8
Highlighted

## Re: solving system of equation with mathcad prime 2

Five equations but only four variables to solve for!!

Highlighted

## Re: solving system of equation with mathcad prime 2

Also, since one of your constraints is that your x's sum to unity, you might want to make your initial guesses do the same.

Alan

Highlighted

## Re: solving system of equation with mathcad prime 2

It needs 2 changes:

1 recast the equations so that you don't have the tmp variable (You aren't "finding" that anyway) ,

2 change the guess values (x1& x2 as a minimum to 0.2 ( find won't always be able to converge to a solution so you need to experiment)

regards

Andy

Highlighted

## Re: solving system of equation with mathcad prime 2

Thank you all so much, I much closer to getting this now, but still having issues with x4. below is my sheet that I've been working from if any of you care to take a look, I keep changing my guess for x4 but cannot seem to get it to work...

Highlighted

## Re: solving system of equation with mathcad prime 2

And the above are the actual equations i'm using, the ones I wrote before were just simplified examples so i didn't have to write out equations. Thank you all again for your input, I'm still learning how to use this tool.

Highlighted

Alan

Highlighted

## Re: solving system of equation with mathcad prime 2

What was your error message? If I write the system exactly as you have it it still works! Try going to Calculations Menu and press Calculate.

Alan

PS Uploading worksheet is better than just inserting an image. In top right-hand corner of editor is "Use advanced editor". At the bottom of the advanced editor you can insert worksheets.

Highlighted

## Re: solving system of equation with mathcad prime 2

Thank you for the tip, I didnt see that option for advanced editor.

I believe the error messge said to try changing my guess or tol or ctol.

I will try this again later after work, thank you again!

Announcements