Previous Up Next

6.28.13  Sturm sequences and number of sign changes of P on (a, b]: sturm sturmseq sturmab

Given a polynomial or rational expression P(x), the Sturm sequence is the sequence P1(x),P2(x), … given by the recurrence relation:

If P(x) is a polynomial of degree n, then this sequence has at most n terms.

If P(x) is square-free, then Sturm’s Theorem gives a way to use the sequence to determine the number of zeros of P(x) on an interval.

The sturm command can find either the Sturm sequence (in which case it can also be called as sturmseq) or the number of zeros in an interval (in which case it can also be called as sturmab).

To find the Sturm sequence:


Examples.

To compute the number of zeros in an interval:


Examples.


Warning!!!!
The polynomial is defined by its symbolic expression.
Input:

sturm([1,0,0,1],x)

or:

sturm([1,0,0,2,0,0],x,-2,0)

Output:

Bad argument type

Previous Up Next