MathGroup Archive 1999

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

Search the Archive

Re: List Position

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15758] Re: [mg15740] List Position
  • From: "Arnold Knopfmacher" <arnoldk at gauss.cam.wits.ac.za>
  • Date: Sun, 7 Feb 1999 02:03:43 -0500 (EST)
  • Organization: CAM,University ofthe Witwatersrand
  • Sender: owner-wri-mathgroup at wolfram.com

Harry,

Position
[{{1},{1},{2},{8},{-3}},x_ /;x<=0][[1,1]]

5


> Can anyone tell me how I find the position in a list of the first value
> less than or equal to zero.
> For example, how can I get Mathematica to tell me that in the list
> {{1},{1},{2},{8},{-3}}
> that the first value of interest to me is position 5. Thanks in advance.
> Harry.
> 
> 
> 


  • Prev by Date: Graphics3D and polygons
  • Next by Date: Using Mathem.. to learn calculus? or Statistics?
  • Previous by thread: RE: List Position
  • Next by thread: Re: List Position