MathGroup Archive 1999

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

Search the Archive

RE: List Position


Try this:
Module[{m},m=Min[myList];
Position[l,m/;m<0]]

Hope this helps,

**************************************** 
Jean-Marie THOMAS
mailto:jmthomas at agat.net
Conseil et Audit en Ingenierie de Calcul Strasbourg, France
http://www.agat.net
****************************************

-----Original Message-----
From: Harry flynn [mailto:harry.f at ukonline.co.uk] To:
mathgroup at smc.vnet.net
Subject: [mg15778] [mg15740] List Position


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: Re: List Position
  • Next by Date: Ploting Colored Error Bars
  • Previous by thread: Re: List Position
  • Next by thread: Re: List Position