Function: leastroot - find floating-point approximation to least root of an equation or expression on a real interval.

Calling sequence:

leastroot( expr, x = a .. b);

Parameters:

expr - the equation or expression, involving one variable

x - the variable (a name)

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

Description:

Examples:

> leastroot( tan(sin(x))=1, x = 0 .. 2*Pi );

.9033391108

> leastroot((x-Pi)^2, x = 0 .. 4);

3.141592654

> leastroot(sin(x) + x^2, x = -infinity .. infinity);

-.8767262154

> leastroot(abs(sin(x)+x) = 1, x = -2 .. 2);

-.5109734294

> leastroot(Int(sin(s),s=0..x) = 1, x = 1 .. infinity);

1.570796327

See also:

allsolve , convert(pwlist) , evalr , fsolve , gmin , greatestroot

Maple Advisor Database R. Israel 2000