MathGroup Archive 1999

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

Search the Archive

Position of element in a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16301] Position of element in a list
  • From: Roger Mason <rmason at sparky2.esd.mun.ca>
  • Date: Sun, 7 Mar 1999 01:05:34 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

I want to find the Position[] of negative elements in a list. The obvious
methods do not work:

Position[{-1, 3, -2, 1}, -_]

and

Position[{-1, 3, -2, 1}, -x_]

return

{}

So how do I perform this apparently simple task?

Thanks,

Roger Mason



  • Prev by Date: RE: Ploting 2 Lists
  • Next by Date: Re: Multiply a constant to a matrix column
  • Previous by thread: updating starting values
  • Next by thread: Re: Position of element in a list