Previous Up Next

11.3.1  Exact bounds for real roots of a polynomial

Bounds for the real roots of a polynomial can be found by realroot and VAS commands.

The VAS command uses the Vincent-Akritas-Strzebonski algorithm to find intervals containing the real roots of polynomials.

Examples

Find the real roots of x3+1.

realroot(x^3+1,0.1)
     
⎡
⎣
−11
⎤
⎦
          

Find the real roots of x3−x2−2x+2.

realroot(x^3-x^2-2*x+2,0.1)
     
⎡
⎢
⎢
⎣
    −[1.40624999999999..1.50000000000001]1
    11
    [1.37499999999999..1.43750000000001]1
⎤
⎥
⎥
⎦
          

Find the real roots of x3−x2−2x+2 in the interval [0;2].

realroot(x^3-x^2-2*x+2,0.1,0,2)
     
⎡
⎢
⎣
11
[1.37499999999999..1.43750000000001]1
⎤
⎥
⎦
          
VAS(x^3-7*x+7)
     
⎡
⎢
⎢
⎢
⎢
⎢
⎢
⎢
⎢
⎣
−40
1
3
2
3
2
2
⎤
⎥
⎥
⎥
⎥
⎥
⎥
⎥
⎥
⎦
          
VAS(x^5+2*x^4-6*x^3-7*x^2+7*x+7)
     
⎡
⎢
⎢
⎣
⎡
⎣
−5,−1⎤
⎦
,−1,⎡
⎢
⎢
⎣
1,
3
2
⎤
⎥
⎥
⎦
,⎡
⎢
⎢
⎣
3
2
,2⎤
⎥
⎥
⎦
⎤
⎥
⎥
⎦
          
VAS(x^3-x^2-2*x+2)
     
⎡
⎣
⎡
⎣
−3,0⎤
⎦
,1,⎡
⎣
1,3⎤
⎦
⎤
⎦
          

Previous Up Next