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: [mg16369] Re: [mg16301] Position of element in a list
  • From: Jurgen Tischer <jtischer at col2.telecom.com.co>
  • Date: Thu, 11 Mar 1999 02:16:43 -0500
  • Organization: Universidad del Valle
  • References: <199903070605.BAA23750@smc.vnet.net.>
  • Sender: owner-wri-mathgroup at wolfram.com

In[1]:= Position[{-1, 3, -2, 1}, -_]
Out[1]= {{1},{3}}

Jurgen

Roger Mason wrote:
> 
> 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: Win95 and quicktime
  • 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