MathGroup Archive 2011

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

Search the Archive

Nested List Abs[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121035] Nested List Abs[]
  • From: Sam Korn <sam at kornfamily.com>
  • Date: Wed, 24 Aug 2011 03:14:55 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

I have a list, and each element of the
list is a sublist with two integers. How do I delete from the larger
list any integer pair whose numerical distance apart is greater than
one? I'd been trying to map Abs[Subtract[#1,#2]]&<1 over the list, but
so far that hasn't worked.

Any suggestions?

Sent from my iPhone




  • Prev by Date: Simplifying certain trigonometric expressions
  • Next by Date: Announce: Units, Spin Algebra etc.
  • Previous by thread: Re: Simplifying certain trigonometric expressions
  • Next by thread: Re: Nested List Abs[]