MathGroup Archive 1999

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

Search the Archive

Re: Position of element in a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16392] Re: [mg16301] Position of element in a list
  • From: "Richard Finley" <rfinley at medicine.umsmed.edu>
  • Date: Thu, 11 Mar 1999 02:16:56 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Roger,
Here is one way....

Position[Negative[list],True]

regards, RF

>>> Roger Mason <rmason at sparky2.esd.mun.ca> 03/07/99 12:05AM >>>
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: Mathematica Problem
  • Next by Date: Re: Discrete probablitiy distributions
  • Previous by thread: Re: Position of element in a list
  • Next by thread: Re: Position of element in a list