sturmCount(f,a,b)
sturmCount(f)
This computes the number of real roots in the interval $(a,b]$ of a univariate polynomial f with rational coefficients. If a and b are not specified, this computes the number of real roots of f. This is computed by taking the difference in variation of the Sturm sequence of f.
|
|
|
|
|
|
|
In the above example, multiplicity is not counted. To include it, make the multiplicity option true.
|
|
|
We give examples with infinite intervals.
|
|
|
The object sturmCount is a method function with options.
The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/RealRoots.m2:868:0.