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


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

Re: it isn't strange?!

From DrMajorBob <btreat1@austin.rr.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: it isn't strange?!
Date 2011-02-03 10:28 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iie012$bjd$1@smc.vnet.net> (permalink)

Show all headers | View raw


I will assume that "pb" means peanut butter.

So here is your peanut butter:

conditions =
  Reduce[Max[a, b] == Max[c, d], c, Reals] /. {And -> List, Or -> List}

{{d < Max[a, b], c == Max[a, b]}, {d == Max[a, b], c <= Max[a, b]}}

conditions /. {d -> 2, a -> 4, b -> 3, c -> 6}
And @@@ %

{{True, False}, {False, False}}

{False, False}

conditions /. {d -> 4, a -> 4, b -> 3, c -> 6}
And @@@ %

{{False, False}, {True, False}}

{False, False}

A tautology is a logical statement that's true for every value of the  
variables.

Your conditions are NOT a tautology, as your two examples prove.

Bobby

On Wed, 02 Feb 2011 05:06:39 -0600, olfa <olfa.mraihi@yahoo.fr> wrote:

> Hi Mathematica community,
>
> here is my pb:
>
>  input:
> Reduce[Max[a, b] == Max[c, d], c, Reals]
> output:
>  (d < Max[a, b] && c == Max[a, b]) || (d == Max[a, b] &&  c <= Max[a,
> b])
>
> when testing this output with 2 initialisations:
> d = 2  a =  4  b = 3  c = 6  here d < Max[4, 3] but c is not equal to
> Max[4, 3]
>
> d = 4  a =   4  b = 3  c = 6  here d = Max[4, 3] but c is not <= to
> Max[4, 3]
>
> where is the pb?!
>


-- 
DrMajorBob@yahoo.com

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


Thread

Re: it isn't strange?! DrMajorBob <btreat1@austin.rr.com> - 2011-02-03 10:28 +0000

csiph-web