MathGroup Archive 2011

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

Search the Archive

Re: making simplification

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117625] Re: making simplification
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 29 Mar 2011 06:49:10 -0500 (EST)

Simplify[x == 0 || x == 1 || x == 2 || x == 3 || x == 4, 
 Element[x, Integers]]

0 <= x <= 4


Bob Hanlon

---- olfa <olfa.mraihi at yahoo.fr> wrote: 

=============

Hi mathematica community,

if we have x=0||x=1||x=2||x=3||x=4
is there a way to simplify it into 0<=x<5 or into 0<=x<=4?

thank you very much.



  • Prev by Date: create reusable graph style?
  • Next by Date: Re: making simplification
  • Previous by thread: making simplification
  • Next by thread: Re: making simplification