I try (in Mathematica 10)
FullSimplify[l >= l1 + l2, {l <= l1 + l2, Element[l | l1 | l2, Integers]}]
But that gives back
l >= l1 + l2
Whereas I expected
l == l1 + l2
However, (as stated in the comments)
FullSimplify[l >= l1 + l2 && l <= l1 + l2]
yields
l == l1 + l2
Superficially these two variants (inequality as assumption, or as equation) look equivalent. What is the technical difference between the two?
To counter the claim that my question is easily answered with the documentation or that it is a simple mistake, the documentation for FullSimplify reads
Assumptions can consist of equations, inequalities, domain specifications such as x[Element]Integers, and logical combinations of these.
which led me to believe my initial attempt should be equivalent to the solution given in the comments.
FullSimplify[l >= l1 + l2 && l <= l1 + l2]– ciao Jun 23 '16 at 09:16Reduce[{l >= l1 + l2, l <= l1 + l2}, l]... – ciao Jun 23 '16 at 09:23- As you receive help, try to give it too, by answering questions in your area of expertise.
- Take the tour and check the faqs!
- When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
– Jun 23 '16 at 09:26l == l1 + l2is simpler thanl >= l1 + l2 && l <= l1 + l2but not simpler thanl >= l1 + l2(as measured bySimplify`SimplifyCount[expr]). Note: aSimplifyCountfunction is given in the docs forComplexityFunction. See also (26172). – Michael E2 Jun 27 '16 at 14:25TransformationFunctionsthat will transforml >= l1 + l2.under the assumptionl <= l1 + l2. (AFAIR, I couldn't find one a couple of days ago. I should have though ciao's first comment would be tried internally. Maybe it is, but a customComplexityFunctionthat prefers==to>=didn't work.) – Michael E2 Jun 27 '16 at 14:39