Skip to main content
1-Visitor
July 16, 2015
Question

Return within a range

  • July 16, 2015
  • 1 reply
  • 748 views

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

1 reply

19-Tanzanite
July 20, 2015

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).