MathGroup Archive 2008

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

Search the Archive

Re: max and min


Ary Adilson Morales Alvarado wrote:

> And, If instead of a function I have a List?, how I can to use the
> FindMaximum?.

<snip>

For a list, assuming I have correctly understood your question, you 
should use *Max* (or *Min*). For instance,

     lst = {1, -2, 7, 3, 8, 2, -9, 5};

     Max[lst]          (* returns 8 *)

Regards,
-- Jean-Marc


  • Prev by Date: Re: Product
  • Next by Date: Re: Documentation - what is the big secret?
  • Previous by thread: Re: max and min
  • Next by thread: Re: max and min