SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Solution of Equation "no real roots" result
Rank: Newbie
Groups: Registered
Joined: 06/07/2022(UTC) Posts: 2
|
Hi, I have an polynomial equation (x^3 specifically) which I want to get the roots for. The roots are there if I plug in values from WolframAlpha (https://www.wolframalpha.com/input?i2d=true&i=-21.2Power%5Bx%2C3%5D%2B19707.8Power%5Bx%2C2%5D%2B6628342.5x-1125000000), I also checked on excel by changing x=? I found a root of x~128 but SMath won't do it. On SMath it says no results even after I removed the unit and everything? I have used 'solve' function, but always get a "no real roots" message (see file attached). Can someone help out? Question.sm (15kb) downloaded 12 time(s).Many thanks in advance!
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Hi. Try solve(f(x),x,0,1500)=1223. Best regards Alvaro
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 Was thanked: 506 time(s) in 337 post(s)
|
Try to plot these kind of functions to see what is going on. Your function is equals to zero around 1200. Here is your solution with various solvers. Regards Question_answer.sm (22kb) downloaded 15 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: Fog123 I have an polynomial equation ... which I want to get the roots for. Your polynomial is doctored in yellow. By inspection, the plot reveals complex roots, i.e: 2 complex roots. Comment: respect preciously the Lagrange canonical order. Cheers ... Jean. Question Doctored.sm (30kb) downloaded 16 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 Was thanked: 506 time(s) in 337 post(s)
|
Here is your complete answer by the way. Good old maple saves the day again. Regards
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
As it looks, if you create cubic at profusion, the cubic roots solver will be a great companion. It comes useful in PID techniques. Polyroots is native in Smath.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
... once your cubic in hand, you can solve for a specific datum. Cheers ... Jean.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 06/07/2022(UTC) Posts: 2
|
Hi Everyone, Thank you for your replies they were very helpful. I really appreciate the people who went above and beyond to explain the various ways of getting the roots and even changing the datum. It proved extremely helpful to plot the function where I quickly realized the difference between my SMath and WolframAlpha results. The 4th term 'x4' or 'c' is supposed to be a negative. I though I was doing something wrong with inputting the data into SMath, but it was the function which I was inputting that was wrong. In my program by changing "Qd" to a (negative) I got the following roots. Lesson learned: Quadruple check your functions. Question_finished.sm (22kb) downloaded 8 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 Was thanked: 506 time(s) in 337 post(s)
|
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Solution of Equation "no real roots" result
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.