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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

What built in Functionality is Best to Solve this.

ppal
17-Peridot

What built in Functionality is Best to Solve this.

Given 

ppal_0-1659316191690.png

Soln x=1 and x=-1

I have tried the solve box - the answer depends on the seed value.

ppal_1-1659316356502.png

 

ppal_2-1659316378789.png

 

 Best approach to solve in Mathcad?  Thanks.

ACCEPTED SOLUTION

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

A solve block in Prime only uses numerical approximation algorithms and will always give you just one solution which depends on the guess value, as you found out yourself.

The symbolic "solve" should give you all solutions, especially when you combine it with "fully". But the symbolic engine in Prime/Mathcad is to weak and not capable to do so - it yields just one of the two solutions:

Werner_E_0-1659317461826.png

You can plot the LHS and RHS of the equation to see that there are two solutions

Werner_E_1-1659317562809.png

You can also combine different guess values in a vector and so get both solutions in one go

Werner_E_2-1659317622606.png

Its no surprise that Wolfram Alpha does a much better job with this:

Werner_E_3-1659317925019.png

 

I guess that Mathcad 11 (with Maple under the hood) will do a better job, too.

 

 

 

View solution in original post

5 REPLIES 5
Werner_E
25-Diamond I
(To:ppal)

A solve block in Prime only uses numerical approximation algorithms and will always give you just one solution which depends on the guess value, as you found out yourself.

The symbolic "solve" should give you all solutions, especially when you combine it with "fully". But the symbolic engine in Prime/Mathcad is to weak and not capable to do so - it yields just one of the two solutions:

Werner_E_0-1659317461826.png

You can plot the LHS and RHS of the equation to see that there are two solutions

Werner_E_1-1659317562809.png

You can also combine different guess values in a vector and so get both solutions in one go

Werner_E_2-1659317622606.png

Its no surprise that Wolfram Alpha does a much better job with this:

Werner_E_3-1659317925019.png

 

I guess that Mathcad 11 (with Maple under the hood) will do a better job, too.

 

 

 

LucMeekes
23-Emerald III
(To:Werner_E)

"I guess that Mathcad 11 (with Maple under the hood) will do a better job, too."

Don't set the expectation for that old version of Maple too high:

LucMeekes_1-1659357919821.png

Why is the first answer not (just) 1 instead of 1.0000000?

There's no way to get a negative or complex result from the symbolic solver.

 

Luc

Werner_E
25-Diamond I
(To:LucMeekes)


@LucMeekes wrote:

"I guess that Mathcad 11 (with Maple under the hood) will do a better job, too."

Don't set the expectation for that old version of Maple too high:

 


Well, it seems that sometimes we glorify the good old things a bit too much. 🤔

ValeryOchkov
24-Ruby IV
(To:ppal)

1i.png

Yes, the "root" function can be used, too. And you also can use multiple guesses in one go if you vectorize:

Werner_E_0-1659345982526.png

The root function in its variant with four arguments can also be evaluated symbolically, but like the symbolic "solve" it would yield just one of the many solutions and the range for x provided has no effect at all:

Werner_E_4-1659346507611.png

 

I found no way to talk Mathcad or Prime into giving a complete closed solution like

Werner_E_2-1659346282944.png

 

 

Announcements

Top Tags