SturmHabichtPackage(R, UP)ΒΆ
sturm.spad line 1 [edit on github]
This package provides functions for counting real roots of univariate polynomials over an OrderedIntegralDomain.
- countRealRoots: UP -> Integer
countRealRoots(p)says how many real rootsphas
- countRealRootsMultiple: UP -> Integer if R has GcdDomain
countRealRootsMultiple(p)says how many real rootsphas, counted with multiplicity
- SturmHabicht: (UP, UP) -> Integer
SturmHabicht(p1, p2)computesc_{+}-c_{-} wherec_{+} is the number of real roots ofp1withp2>0andc_{-} is the number of real roots ofp1withp2<0. Ifp2=1what you get is the number of real roots ofp1.
- SturmHabichtCoefficients: (UP, UP) -> List R
SturmHabichtCoefficients(p1, p2)computes the principal Sturm-Habicht coefficients ofp1andp2
- SturmHabichtMultiple: (UP, UP) -> Integer if R has GcdDomain
SturmHabichtMultiple(p1, p2)computesc_{+}-c_{-} wherec_{+} is the number of real roots ofp1withp2>0andc_{-} is the number of real roots ofp1withp2<0. Ifp2=1what you get is the number of real roots ofp1.
- SturmHabichtSequence: (UP, UP) -> List UP
SturmHabichtSequence(p1, p2)computes the Sturm-Habicht sequence ofp1andp2