Skip to main content
1-Visitor
October 20, 2022
Solved

Issue with solving system of equations in mathcad prime 8

  • October 20, 2022
  • 3 replies
  • 9399 views

Hi,

 

So I'm struggling to understand exactly what is the issue that is occurring that is stopping the system of equations below from solving. I know that it is solvable, I did it by hand, and I have the answers for verification. However, it is in the software claiming to be unsolvable. Am I entering it in improperly?

 

soe issue.PNG

Best answer by Werner_E

OK, I played around with this puzzle:

The solve block fails when using square roots and variables with units

Werner_E_0-1666351011454.png

Getting rid of the roots does not help

Werner_E_1-1666351038879.png

Getting rid of the units does not help, either

Werner_E_2-1666351068303.png

BUT .... getting rid of roots AND units does the trick

Werner_E_3-1666351108847.png

Because we squared we get also negative solutions which we can get rid of by using the modifier "Assume, ALL>0"

Of course we must add the correct units manually

 

Werner_E_8-1666351631046.png

 

I was curious and tried the old symbolic engine (muPad) which was included up to version Prime 6. Not surprisingly its a bit more capable than the new one. It still throws a strange error initially ("Cannot understand the syntax") but we get results by either removing the units OR removing the roots:

Werner_E_9-1666352111694.png

 

3 replies

23-Emerald IV
October 20, 2022

This should not be a problem. Mathcad 11 gives:

LucMeekes_2-1666287415343.png

With Prime you might try:

LucMeekes_3-1666287549043.png

Apparently Prime doesn't like roots (it's not a rabbit).

 

Success!
Luc

 

 

DSE5141-VisitorAuthor
1-Visitor
October 20, 2022

Thanks, this got rid of the Error! Problem is, a new one popped up, and I have no idea what it is (I cannot find anything about it online). Any ideas?

 

new error.png

 

25-Diamond I
October 20, 2022

My guess is that Prime's Symbolic is also unable to cope with the units assigned as it does not know anything about units. If you want to use the symbolic "solve", then better without numeric values at all, as shown by Luc.
But in the concrete case no symbolic solution is needed at all. A numeric solution block will do as well:

Werner_E_0-1666297109939.png

 

12-Amethyst
October 20, 2022

Prime may be confused by your subscripts, thinks they're a vector index.  I got the same thing. 

Without subscripts there's no problem:

23-Emerald IV
October 20, 2022

That wasn't the problem of the OP. This is:

LucMeekes_0-1666303647548.png

Luc

ttokoro
21-Topaz I
21-Topaz I
October 20, 2022

Assume, ALL>0 does not work. The one way that we want to get.

 

image.pngimage.pngimage.pngimage.png

t.t.