### 5.34.5 An upper bound for the positive real roots of a polynomial: posubLMQ

The posubLMQ command takes one argument, a polynomial.
posubLMQ returns a (non-optimal) upper bound for the positive real roots of the polynomial using the Local Max Quadratic (LMQ) Akritas-Strzebonski-Vigklas algorithm.
Input:

posubLMQ(x^3 - 7*x + 7)

Output:

4

Input:

posubLMQ(x^5 + 2*x^4 - 6*x^3 - 7*x^2 + 7*x + 7)

Output:

4

Input:

posubLMQ(x^3 - x^2 -2*x + 2)

Output:

3