I have a set of assumptions, say, $x > 0$ and $y > 0$.
So I specified the
$Assumptions = x > 0 && y > 0
Now the inequality $x - y/2 > 0$ does not provide a truth value.
The function Simplify[x-y/2>0]
produces output 2x>y
, while the function Simplify[x+y/2>0]
produces output True
.
I actually want a truth value for expressions. But when a truth value doesn't exist, i.e., it may be either true or false, I want to know that the said inequality can take either.
Then I can just proceed with assuming $x-y/2>0$ and $x-y/2\leq 0$ as two cases.
Is there a way to figure out that the inequality is undetermined in Mathematica?
x-y/2
is true when2x>y
. It will be False otherwise. Since MMA doesn't know whether2x>y
, it can't give you a straight True or False answer. The second case is obviously True and MMA tells you that. $\endgroup$x
andy
exist that makex - y/2 > 0
whenx > 0
andy > 0
?Simplify
is not the way to go here, but usingExists
andReduce
is a very obvious solution when you actually get to know its existence.Reduce[Exists[{x, y}, x > 0 && y > 0, x + y/2 > 0], Reals]
returnsTrue
, which indicates that such values ofx
andy
exist. What yourSimplify
query forx + y/2 > 0
with these assumptions tells is that all values under these conditions fulfil the requirement. (You can also checkForAll
usage withReduce
). $\endgroup$