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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to get the correct answer if the equation have multiple solutions ?

Ackurdeeve
6-Contributor

How to get the correct answer if the equation have multiple solutions ?

I have a function like this.

Ackurdeeve_0-1673369112771.png

And I want to get the solution when t>2.21. if I use SOLVE only, it get the answer shown in blue arrow.

How can I get the answer in red arrow? Thanks.

Ackurdeeve_1-1673369168444.png

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Ackurdeeve)

Actually unfortunately the symbolic "solve"  very often ignores an "assume" modifier, but I am surprised that it states "no solution found" instead of just returning the solution 1.5... which it also finds without "assume".

 

But never mind, you don't need an "exact" symbolic solution anyway, just a numeric value. So its better to use a numeric method to get it.

Prime offers the "root" function which can be used in two ways (either by providing an interval or by providing a guess value) and a solve block to do the job. The picture shows the three ways to obtain the desired solution

Werner_E_2-1673373498855.png

 

 

 

View solution in original post

3 REPLIES 3
Werner_E
25-Diamond I
(To:Ackurdeeve)

Actually unfortunately the symbolic "solve"  very often ignores an "assume" modifier, but I am surprised that it states "no solution found" instead of just returning the solution 1.5... which it also finds without "assume".

 

But never mind, you don't need an "exact" symbolic solution anyway, just a numeric value. So its better to use a numeric method to get it.

Prime offers the "root" function which can be used in two ways (either by providing an interval or by providing a guess value) and a solve block to do the job. The picture shows the three ways to obtain the desired solution

Werner_E_2-1673373498855.png

 

 

 

Though Werner demonstrated this is easily solvable numerically, I don't believe the symbolic engine/keyword "assume" should be behaving this way, so I submitted a case to PTC Support on your behalf and attached your worksheet. Hopefully R&D can use this information to fix the issue in a future release of Mathcad Prime.

I manage the Creo and PTC Mathcad YouTube channels for PTC, as well as all PTC Mathcad marketing in general.
Werner_E
25-Diamond I
(To:DJNewman)

Thanks!

I agree that "assume" is not behaving correctly in this example.

As I wrote this was an annoyance even in real Mathcad that "assume" often was ignored, mostly when the symbolics had to switch to its numeric mode because no algebraic solution could be found.
But it got even worse in Prime. Here a simpler example (the error message still is "no solution found")
Its a screenshot from Prime 6

Werner_E_0-1673375809414.png

and here the same using the legacy symbolic engine in Prime 6

Werner_E_1-1673375886863.png

It was all done in Prime 6 and maybe the symbolics has been improved in the meantime ???

 

The original problem of @Ackurdeeve  can't be solve using the old engine, either. The behaviour is different, though - instead telling us that no solution could be found, muPad simply ignores the assume modifier which is what I am used from real Mathcad but of course it isn't any better:

Werner_E_3-1673376187114.png

 

 

 

 

 

Announcements

Top Tags