Function: gmin - find floating-point approximations to the minimum of an expression on a real interval.

Calling sequence:

gmin( expr, x = a .. b);
gmin( expr, x = a .. b, 'x0');

Parameters:

expr - the expression, involving one variable

x - the variable (a name)

a, b - endpoints of the interval (real constants).

x0 - (optional) a name to use for saving the set of x values at which the minimum is attained.

Description:

Examples:

> gmin( x^2/4 + cos(x), x = -Pi .. Pi );

.5792021049

> gmin( x^2/4 + cos(x), x = -Pi .. Pi, 'x0');

.5792021049

> x0;

{1.895494267, -1.895494267}

> gmin(sin(x) + x^2, x = -infinity .. infinity,'x0');

-.2324655752

> x0;

{-.4501836113}

> gmin(x^2,x=2..3,'x0');

4.

> x0;

{2.}

> gmin(1/x,x=0..infinity,'x0');

0

> x0;

{infinity}

See also:

allsolve , convert(pwlist) , evalr , fsolve , gmax

Maple Advisor Database R. Israel 1998