Message Boards Message Boards

0
|
5770 Views
|
3 Replies
|
5 Total Likes
View groups...
Share
Share this post:

Why Mathematica cannot solve simple power eqation?:(

Dear All, problem is as following: I have a simple equation that Mathematica cannot solve - I found problem when trying to calculate equation with real powers instead of integers or simple fraction (as in attached example with x^0.5 and x^0.5000001). I suspect that it's trivial but I couldn't find the solution:/ Any ideas? Regards, Darek

code

Attachments:
POSTED BY: Darek Aksamit
3 Replies
POSTED BY: Frank Kampas

NSolve is for (numerically) solving polynomial equations (as seen from the first description returned by ?NSolve). The given (original) equation is not a polynomial. Therefore we must resort to explicitly finding the roots as Frank has done with FindRoot. FindRoot is not restricted to polynomials, therefore it returns an answer.

Reading the posting again, I am not completely convinced of my answer above because NSolve[5.9x^0.5-x==1,x] returns a solution when the equality is not a polynomial per PolynomialQ[5.9x^0.5 - x].

Maybe someone else can explain better?

POSTED BY: Isaac Abraham
POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract