sturm.spad line 1 [edit on github]
This package provides functions for counting real roots of univariate polynomials over an OrderedIntegralDomain.
SturmHabicht(p1, p2)
computes c_
+-c_
- where c_
+ is the number of real roots of p1
with p2>0
and c_
- is the number of real roots of p1
with p2<0
. If p2=1
what you get is the number of real roots of p1
.
SturmHabichtCoefficients(p1, p2)
computes the principal Sturm-Habicht coefficients of p1
and p2
SturmHabichtMultiple(p1, p2)
computes c_
+-c_
- where c_
+ is the number of real roots of p1
with p2>0
and c_
- is the number of real roots of p1
with p2<0
. If p2=1
what you get is the number of real roots of p1
.
SturmHabichtSequence(p1, p2)
computes the Sturm-Habicht sequence of p1
and p2
countRealRoots(p)
says how many real roots p
has
countRealRootsMultiple(p)
says how many real roots p
has, counted with multiplicity