MathGroup Archive 2011

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

Search the Archive

How to get elements satisfying specific condition from a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123371] How to get elements satisfying specific condition from a list
  • From: e-changb <e-changb at hanmail.net>
  • Date: Sun, 4 Dec 2011 02:51:23 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Hi, please help me if you can.. Let

B:= Table[{x, y}, {x, 1, 6}, {y, 1, 6}]

It is clear that B has 36 elements.

I want to get the list of elements satisfying
'the first component + second component is bigger than 9'

so that the answer is

{{5,5},{5,6},{6,5},{6,6}}.

In fact, I have no idea for following even simpler problem. : Let A be a set of all natural numbers less than 10. Find every element whose squre root is bigger than 2. (needless to say the answer is {5,6,7,8,9})

Can you help me ?



  • Prev by Date: Re: how to get string in sci. notation to a number?
  • Next by Date: Area of two intersecting circles
  • Previous by thread: Re: Transparent textures from images
  • Next by thread: Re: How to get elements satisfying specific condition from a list