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


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

Re: Simplify puzzle

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Simplify puzzle
Date 2012-01-29 10:15 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jg3686$4v2$1@smc.vnet.net> (permalink)
References <201201271111.GAA12491@smc.vnet.net>

Show all headers | View raw


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
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web