MathGroup Archive 2007

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

Search the Archive

Re: Inequalities


Bruno Campanini wrote:
> -10 <= 3x+2 <= 10
> 
> I tried with FindInstance and Reduce but was unable to
> get the right range solution  -4 <= x <= 8/3
> 
> Any suggestions.
> 
> Bruno

Hi Bruno,

Are you fooling yourself?

In[1]:=
$Version
ineq = -10 <= 3*x + 2 <= 10;
Reduce[ineq, x]

Out[1]=
5.2 for Microsoft Windows (June 20, 2005)

Out[3]=
            8
-4 <= x <= -
            3

In[1]:= $Version
ineq = -10 <= 3*x + 2 <= 10;
Reduce[ineq, x]

Out[1]= 6.0 for Microsoft Windows (32-bit) (April 20, 2007)

Out[3]=
            8
-4 <= x <= -
            3

Regards,
Jean-Marc


  • Prev by Date: Re: Inequalities
  • Next by Date: HELP IN RECURSIVE ESTIMATION WITH MATHEMATICA
  • Previous by thread: Re: Inequalities
  • Next by thread: Re: Inequalities