MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: different output!!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97028] Re: different output!!
  • From: dh <dh at metrohm.com>
  • Date: Mon, 2 Mar 2009 06:30:34 -0500 (EST)
  • References: <godm3n$46c$1@smc.vnet.net>


Hi,

this is simple. While e.g. 0.5 is be a solution of the former, it is no 

solution to the later.

Daniel



olfa wrote:

> Hi Mathematica community,

> Why output2 (with integers as domain) is different from output1 (with

> reals as domain) ?!! I think it should be the same thing.

> 

> input1:Reduce[{Mod[x, 5] == Mod[xP, 5], 0 <= xP < 5}, {xP}, Reals,

>  Backsubstitution -> True]

> 

> output1: 0 <= Mod[x, 5] < 5 && xP == Mod[x, 5]

> 

> input2:Reduce[{Mod[x, 5] == Mod[xP, 5], 0 <= xP < 5}, {xP}, Integers,

>  Backsubstitution -> True]

> 

> output2: (Mod[x, 5] == 0 && xP == 0) || (Mod[x, 5] == 1 &&

>    xP == 1) || (Mod[x, 5] == 2 && xP == 2) || (Mod[x, 5] == 3 &&

>    xP == 3) || (Mod[x, 5] == 4 && xP ==

> 4)

> 




  • Prev by Date: Re: Delayed function does not behave as original input
  • Next by Date: Re: Experimental Mathematica debugger
  • Previous by thread: Re: different output!!
  • Next by thread: Re: different output!!