Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi!
I'am having a problem wanting to solve a third degree polynomial. This is ok, and mathcad retuns three solutions, but I want mathcad to return only the solutions within a defined range, e.g [0,10]. I have tried to this with an if-function, but no luck there. Uploading a file. Someone please help.
BA
You can't compare a real number and a complex number. If you know the desired answer is real, then the first step is to eliminate all the complex answers. If the desired answer might be complex then you have to compare the real and imaginary parts separately (each can fall within a specified range).