Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8232 > unrolled thread

Re: Simplify puzzle

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-01-29 10:15 +0000
Last post2012-01-29 10:15 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Simplify puzzle Bob Hanlon <hanlonr357@gmail.com> - 2012-01-29 10:15 +0000

#8232 — Re: Simplify puzzle

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-01-29 10:15 +0000
SubjectRe: Simplify puzzle
Message-ID<jg3686$4v2$1@smc.vnet.net>
myassumptions = a > 0 && b > 0 && c > 0 && 1 > d > 0 && 1 > e > 0;

FullSimplify[a*b + c*(1 - d*(1 - e)) > 0,
 Assumptions -> myassumptions]

a b + c + c d e > c d

I don't know why Mathematica doesn't fully simplify the result;
however, for an expression with Plus as its Head you can automate what
you did

eachPartGreaterThanZero[x_Plus, assume_: {}] :=
  Simplify[And @@ Thread[(List @@ x) > 0], assume];

eachPartGreaterThanZero[
 a*b + c*(1 - d*(1 - e)), myassumptions]

True

This test is more restrictive than the original so while if it is True
then the original is True; however, if it is False the original could
still be True.


Bob Hanlon


On Fri, Jan 27, 2012 at 6:11 AM, Alan <alan.isaac@gmail.com> wrote:
> Why does the first simplification below fail?
> (Each term succeeds!)
> Thanks,
> Alan Isaac
>
> In[205]:=
> myassumptions = a > 0 && b > 0 && c > 0 && 1 > d > 0 && 1 > e > 0;
> Simplify[a*b + c*(1 - d*(1 - e)) > 0, Assumptions -> myassumptions]
> Simplify[a*b > 0, Assumptions -> myassumptions]
> Simplify[c*(1 - d*(1 - e)) > 0, Assumptions -> myassumptions]
>
> Out[206]= a b + c + c d e > c d
>
> Out[207]= True
>
> Out[208]= True
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web