MathGroup Archive 2011

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

Search the Archive

Re: Reduce a vector eliminating equal components

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117024] Re: Reduce a vector eliminating equal components
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Tue, 8 Mar 2011 05:33:37 -0500 (EST)

Use Union:
In[1]:= v={a,a,a,b,b,b,c,c,c};Union[v]
Out[2]= {a,b,c}
> Date: Mon, 7 Mar 2011 05:46:30 -0500
> From: ant.mezzacapo at gmail.com
> Subject: [mg116993] Reduce a vector eliminating equal components
> To: mathgroup at smc.vnet.net
>
> Hello,
>
> I would to know if there is a simple way to obtain this result: I have a
> vector of size n who contains a certain number of same object. I want it to
> be reduced to a smaller vectors who doesn't contains equal objects.
>
> Thank you
> Antonio Mezzacapo


  • Prev by Date: Re: symbolic integration of wave functions
  • Next by Date: Re: Reduce a vector eliminating equal components
  • Previous by thread: Reduce a vector eliminating equal components
  • Next by thread: Re: Reduce a vector eliminating equal components