MathGroup Archive 2011

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

Search the Archive

Re: How to get elements satisfying specific condition from a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123413] Re: How to get elements satisfying specific condition from a list
  • From: "Nasser M. Abbasi" <nma at 12000.org>
  • Date: Tue, 6 Dec 2011 03:13:16 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201112040751.CAA21566@smc.vnet.net> <jbi6i3$52t$1@smc.vnet.net>
  • Reply-to: nma at 12000.org

On 12/5/2011 4:31 AM, Harvey P. Dale wrote:
> 	You can use "Select" to do this.  For example:
>
> 		Select[Table[{x, y}, {x, 1, 6}, {y, 1, 6}], Total[#]>9&]

fyi, Using the above, I get on version 8.04

In[11]:= Select[Table[{x, y}, {x, 1, 6}, {y, 1, 6}], Total[#] > 9 &]

Out[11]= {}

--Nasser



  • Prev by Date: Re: The orde of product
  • Next by Date: Falling sphere with random outcome
  • Previous by thread: Re: How to get elements satisfying specific condition from a list
  • Next by thread: Re: How to get elements satisfying specific condition from a list