Message Boards Message Boards

GROUPS:

[✓] Keep only positive and real solutions from Solve?

Posted 10 months ago
1991 Views
|
3 Replies
|
2 Total Likes
|

Hi people,

I have a problem where I get four solutions to an equation system. Two imaginary, one negative and one positive. Can I somehow automatically tell Mathematica to only keep the real and positive answer?

Sort of:

Solve[equation1==equation2, x]//Real//Positive

Thanks! //Freddy, Sweden

3 Replies

It would be useful to have a complete self-contained example. Anyway, could try equation1==equation2 && x>0 as first argument to Solve.

Try:

Solve[equation1==equation2&& x > 0, x, Reals] 

or:

 Solve[{equation1==equation2, x > 0}, x, Reals] 

Regards,MI

Thanks a bunch, people! =D

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