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

Math equation solving problem

J_power
10-Marble

Math equation solving problem

Hi experts,

 

Can anyone know how to solve this problem?

it seems the equation is too complicated, so the system can't solve it.

any other methods that can solve this issue?

_9593174_0-1662301645340.png

 

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:J_power)

LucMeekes_0-1662381157480.png

Then:

LucMeekes_1-1662381174803.png

and:

LucMeekes_2-1662381195802.png

 

Success!
Luc

View solution in original post

10 REPLIES 10
Werner_E
25-Diamond I
(To:J_power)

You sure should attach your worksheet, not just show a pic.

What is the error message you get?

Has the variable x not been assigned a value before anyway? If you did, that would throw an error.

On first sight you may end up with a biquadratic equation of sixth order. Its quite possible that Mathcad either is not able to solve it symbolically or (more like, I guess), that the solution Mathcad can come up with is too large and cannot be displayed. In the latter case you still can assign the solution to a function in Q and k and use that function in later calculations.
It may also be the case that Mathcad is not able to display the full solution vector (I assume a 6 x 1 vector) but is able to display all or most of its entries singly one by one.

You may also parametrize a solve or a root call so you can create a (numerical) function in Q an k.

So there a quite some possibilities to deal with the problem. While it might be possible to let Mathcad show you the symbolic solution (at least the one with a positive, real value which as I guess is what you are interested in), its highly likely, that you don't really need the symbolic expression.

 

Are you sure that you really need a symbolic solution? If Q and k are known, you may try a solve block or the root function as well. After all you followed the symbolic solve by a numeric equal sign. If Q and/or k are unknowns, this would yield an error in any case.

 

Hi,

The error message states make a function

Capture.JPG

So turn it into a function then use the function

Capture2.JPG

Your function K.3 does not need the third argument x as x is the variable which the expression is solved for and so should not appear at the (too large) solve expression.

In another thread I got the impression that the OP was only interested in real and positive solutions. In the symbolic symbolic solve vector

Werner_E_0-1662333224330.png

this seems to be the very first entry. Wen can isolate it and Mathcad even is able to display it

Werner_E_2-1662333951439.png

"simplify" doesn't do a great job on this

Werner_E_1-1662333270150.png

But as I guess that Q and k will only take real values, we can talk Mathcad into simplifying the expression a bit further

Werner_E_3-1662334040749.png

Now this function can be used numerically at will

Werner_E_4-1662334079484.png

 

I can be proven wrong but I still think that a pure numerical approach without using the symbolic "solve"  would be more appropriate.

Maybe like this:

Werner_E_5-1662334301476.png

 

LucMeekes
23-Emerald III
(To:J_power)

LucMeekes_0-1662381157480.png

Then:

LucMeekes_1-1662381174803.png

and:

LucMeekes_2-1662381195802.png

 

Success!
Luc

Werner_E
25-Diamond I
(To:LucMeekes)

Nice! 👿

Maybe it should be explained to @J_power  that you are using Mathcad 11 and MC11 is able (or could be made able) to display larger symbolic results.

LucMeekes
23-Emerald III
(To:LucMeekes)

Incidentally...Prime 8:

LucMeekes_0-1662387545545.pngLucMeekes_1-1662387553194.png

LucMeekes_2-1662387567510.png

(No solution was found).

 

Luc

 

 

Hi @LucMeekes ,

Did you sue Prime 8 to do that?

 

 

LucMeekes
23-Emerald III
(To:J_power)

I used Prime 8 to check that. As shown, its symbolics isn't as powerfull as that of Mupad, or Maple.

 

Success!
Luc

Werner_E
25-Diamond I
(To:LucMeekes)

I first thought it could be once again a problem with the infamous auto-label feature, but it looks like the new symbolic in P7 and P8 is not able to solve a third order equation.

Werner_E_0-1662397432974.png

While being nasty to do so by hand, the solution is mathematically well know (Cardano) and should not be a problem for a CAS.

In P6 we can switch back to the legacy symbolics (muPad) and get this

Werner_E_1-1662397484394.png

Not extremely nice to look at, but a solution which could be used for further calcs.
BTW, if we add a summand with x^2, we get the "the solution is too large to display" warning, but at least a solution was found.

 

Using numbers the new engine switches much sooner into numerical approximating float mode while the old engine (muPad) still returns an exact result:

Werner_E_0-1662398353022.png

 

 

LucMeekes
23-Emerald III
(To:Werner_E)

Hmm,   Prime 7:

LucMeekes_1-1662477420272.png

(Cut off at paper edge)

This is where Prime 7 quits:

LucMeekes_2-1662477760763.png

Of course Mathcad11/Maple knows how to do this:

LucMeekes_3-1662477970473.png

(Cut off at paper edge)

 

Luc

Announcements

Top Tags