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


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

Re: The domain parameter of Reduce[]

Started byMurray Eisenberg <murray@math.umass.edu>
First post2012-01-11 09:31 +0000
Last post2012-01-11 09:31 +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: The domain parameter of Reduce[] Murray Eisenberg <murray@math.umass.edu> - 2012-01-11 09:31 +0000

#7732 — Re: The domain parameter of Reduce[]

FromMurray Eisenberg <murray@math.umass.edu>
Date2012-01-11 09:31 +0000
SubjectRe: The domain parameter of Reduce[]
Message-ID<jejkt3$bdr$1@smc.vnet.net>
Manifestly, the result of the first Reduce, namely,

   a > 0 && b > 0

is correct whereas the result of the second Reduce, namely,

   a > 0 && 0 < b <= a

is wrong. For example,

   Re[-1 - Sqrt[a - b] /. {a -> 1/4, b -> 1/2}]

has value -1 even though b > a.

But I don't know why adding the domain Complexes works, because I've 
never understood the documentation for Reduce as to exactly what is mean 
by "doing the Reduction over" a specified domain.

The documentation seems to suggest by means of examples that what this 
means is that the equalities and inequalities are allowed to hold in 
that domain -- rather than that the variables involved are restricted 
to, or allowed to range over values, in that domain.

But I don't think the docs actually come right out and say that. (An 
all-too-common shortcoming of documentation.)

On 1/10/12 5:59 AM, Szabolcs wrote:
> My question if motivated by http://stackoverflow.com/questions/8780068/mathematica-finding-the-conditions-for-the-real-part-of-a-complex-number-to-be
>
> It seems that
>
> Reduce[{ComplexExpand@Re[-1 - Sqrt[a - b] ]<  0, a>  0, b>  0}, {a, b}, Complexes]
>
> will return a different result from
>
> Reduce[{ComplexExpand@Re[-1 - Sqrt[a - b] ]<  0, a>  0, b>  0}, {a, b}]
>
> Also the result of this latter calculation seems incorrect (I didn't expect 'b' to be restricted to be less than 'a')
>
> How does the domain parameter of Reduce work?  Isn't Complexes the default domain?  What changes if we specify Complexes explicitly?  Also, if the result of the second example incorrect (a bug)?
>

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

[toc] | [standalone]


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


csiph-web