Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: max and min

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87499] Re: max and min
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Fri, 11 Apr 2008 05:58:10 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <200804100614.CAA10569@smc.vnet.net> <ftmu0m$4qf$1@smc.vnet.net>

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


  • References:
    • max and min
      • From: "Ary Adilson Morales Alvarado" <amorales@lme.usp.br>
  • 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