Solved
How to set the condition for the solution of a 4th order equation?
- May 25, 2017
- 4 replies
- 6769 views
Hi All, I have a 4th order equation for an unknown parameter. The equation includes some constants whose number depends on the external setting.

The parameter must be a positive real number. In the attachment, I listed two possible symbolic solutions k2_1 and k2_2.
How can I set the if else condition correctly to achieve the following requirement?
(1) if both k2_1 and k2_2 are real and positive, show both of them as the solution of k2
(2) if only one of k2_1 and k2_2 is real and positive show this real number
(3) if neither k2_1 or k2_2 can satisfy the positive real condition, show an error message
Thank you!


