Re: making simplification
- To: mathgroup at smc.vnet.net
- Subject: [mg117627] Re: making simplification
- From: Peter Pein <petsie at dordos.net>
- Date: Tue, 29 Mar 2011 06:49:32 -0500 (EST)
- References: <imfa5a$int$1@smc.vnet.net>
Am 24.03.2011 12:32, schrieb olfa: > 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. > Obviously (for a human, not for a machine) x shall be an integer; so tell it Mathematica: In[1]:= Simplify[x==0 || x==1 || x==2 || x==3 || x==4, x \[Element] Integers] Out[1]= 0 <= x <= 4 Peter