From: Hector Lubian de Iraola on
I would like to know which is or are the best commands in
order to find the highest and lowest function values in an interval.
What I need are not the maximums not the minimums of the
function within the interval but the highest and lowest values.
In my search of the help files I couldn't find a simple way
to do it because with maximize or minimize I don't get what I need.
I am an inexpert user so please excuse me for that.
Thank you,
Hector.





--------------------------------------------------------------------------
Este mensaje ha sido analizado por el sistema antivirus del CEADEN en busca
de virus y otros contenidos peligrosos, y se considera libre de codigo maligno.
Visite nuestro sitio web en http://www.ceaden.cu
--------------------------------------------------------------------------


From: Bill Rowe on
On 4/20/10 at 5:53 AM, hector(a)ceaden.edu.cu (Hector Lubian de Iraola)
wrote:

>I would like to know which is or are the best commands in order to
>find the highest and lowest function values in an interval. What I
>need are not the maximums not the minimums of the function within
>the interval but the highest and lowest values. In my search of the
>help files I couldn't find a simple way to do it because with
>maximize or minimize I don't get what I need. I am an inexpert user
>so please excuse me for that. Thank you, Hector.

What do you mean by "lowest function values in an interval" if
this is not the minimum of the function in that interval?


From: Patrick Scheibe on
Hi,

just use Maximize and give the interval as constraint:

f = Sin[x] + 0.5 x;
Plot[f, {x, 0, 2 Pi}]
Maximize[{f, 0 <= x <= 2 Pi}, x]

Cheers
Patrick

On Tue, 2010-04-20 at 05:53 -0400, Hector Lubian de Iraola wrote:
> I would like to know which is or are the best commands in
> order to find the highest and lowest function values in an interval.
> What I need are not the maximums not the minimums of the
> function within the interval but the highest and lowest values.
> In my search of the help files I couldn't find a simple way
> to do it because with maximize or minimize I don't get what I need.
> I am an inexpert user so please excuse me for that.
> Thank you,
> Hector.
>
>
>
>
>
> --------------------------------------------------------------------------
> Este mensaje ha sido analizado por el sistema antivirus del CEADEN en busca
> de virus y otros contenidos peligrosos, y se considera libre de codigo maligno.
> Visite nuestro sitio web en http://www.ceaden.cu
> --------------------------------------------------------------------------
>
>


From: dh on
Hi Hector,
are you trying to find the global min/max in an interval?
You could e.g. us: NMinimize and NMaximize. Here is an example:
NMaximize[{x Sin[1/x], -0.1 < x < 0.1}, x]
Daniel

On 20.04.2010 11:52, Hector Lubian de Iraola wrote:
> I would like to know which is or are the best commands in
> order to find the highest and lowest function values in an interval.
> What I need are not the maximums not the minimums of the
> function within the interval but the highest and lowest values.
> In my search of the help files I couldn't find a simple way
> to do it because with maximize or minimize I don't get what I need.
> I am an inexpert user so please excuse me for that.
> Thank you,
> Hector.
>
>
>
>
>
> --------------------------------------------------------------------------
> Este mensaje ha sido analizado por el sistema antivirus del CEADEN en busca
> de virus y otros contenidos peligrosos, y se considera libre de codigo maligno.
> Visite nuestro sitio web en http://www.ceaden.cu
> --------------------------------------------------------------------------
>
>


--

Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh(a)metrohm.com>
Internet:<http://www.metrohm.com>