Maximize

Syntax: maximize(expr, argument, from, to);

Example:
x=0;
max=maximize(-2 x^2 - 3 x + 5, [x], -1, 1);
echo(max);
echo(x);

The output is
6.125

Minimize

Syntax: minimize(expr, argument, from, to);

Example:
x=0;
min=minimize(2 x^2 - 3 x + 5, [x], -1, 1);
echo(min);
echo(x);

The output is 3.875

Last edited Oct 19, 2009 at 8:37 AM by samhuang, version 1

Comments

No comments yet.