Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed May 5, 2024
1 parent 2f1fe6b commit b2f46cb
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions src/Math/Algebra/Hspray.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,7 @@ _numberOfRealRootsInOpenInterval signVariationsFunc spray alpha beta
svDiff = svAtAlpha - svAtBeta

_numberOfRealRootsInClosedInterval ::
(AlgRing.C a, Ord a) => ([a] -> Int) -> Spray a -> Maybe a -> Maybe a -> Int
(AlgRing.C a, Ord a) => ([a] -> Int) -> Spray a -> Maybe a -> Maybe a -> Int
_numberOfRealRootsInClosedInterval signVariationsFunc spray alpha beta =
_numberOfRealRootsInOpenInterval signVariationsFunc spray alpha beta + toAdd
where
Expand All @@ -2748,7 +2748,11 @@ _numberOfRealRootsInClosedInterval signVariationsFunc spray alpha beta =
-- | Number of real roots of a spray in an open interval (that makes sense
-- only for a spray on a ring embeddable in the real numbers).
numberOfRealRootsInOpenInterval ::
(Num a, AlgRing.C a, Ord a) => Spray a -> Maybe a -> Maybe a -> Int
(Num a, AlgRing.C a, Ord a)
=> Spray a -- ^ a spray
-> Maybe a -- ^ lower bound of the interval; use @Just@ for a finite bound, and @Nothing@ for minus infinity
-> Maybe a -- ^ upper bound of the interval; use @Just@ for a finite bound, and @Nothing@ for minus infinity
-> Int
numberOfRealRootsInOpenInterval spray =
if isUnivariate spray
then _numberOfRealRootsInOpenInterval signVariations spray
Expand All @@ -2758,7 +2762,11 @@ numberOfRealRootsInOpenInterval spray =
-- only for a spray on a ring embeddable in the real numbers). The roots are
-- not counted with their multiplicity.
numberOfRealRootsInClosedInterval ::
(Num a, AlgRing.C a, Ord a) => Spray a -> Maybe a -> Maybe a -> Int
(Num a, AlgRing.C a, Ord a)
=> Spray a -- ^ a spray
-> Maybe a -- ^ lower bound of the interval; use @Just@ for a finite bound, and @Nothing@ for minus infinity
-> Maybe a -- ^ upper bound of the interval; use @Just@ for a finite bound, and @Nothing@ for minus infinity
-> Int
numberOfRealRootsInClosedInterval spray =
if isUnivariate spray
then _numberOfRealRootsInClosedInterval signVariations spray
Expand All @@ -2767,7 +2775,11 @@ numberOfRealRootsInClosedInterval spray =
-- | Number of real roots of a spray in an open interval (that makes sense
-- only for a spray on a ring embeddable in the real numbers).
numberOfRealRootsInOpenInterval' ::
(AlgAbs.C a, Ord a) => Spray a -> Maybe a -> Maybe a -> Int
(AlgAbs.C a, Ord a)
=> Spray a -- ^ a spray
-> Maybe a -- ^ lower bound of the interval; use @Just@ for a finite bound, and @Nothing@ for minus infinity
-> Maybe a -- ^ upper bound of the interval; use @Just@ for a finite bound, and @Nothing@ for minus infinity
-> Int
numberOfRealRootsInOpenInterval' spray =
if isUnivariate spray
then _numberOfRealRootsInOpenInterval signVariations' spray
Expand All @@ -2777,7 +2789,11 @@ numberOfRealRootsInOpenInterval' spray =
-- only for a spray on a ring embeddable in the real numbers). The roots are
-- not counted with their multiplicity.
numberOfRealRootsInClosedInterval' ::
(AlgAbs.C a, Ord a) => Spray a -> Maybe a -> Maybe a -> Int
(AlgAbs.C a, Ord a)
=> Spray a -- ^ a spray
-> Maybe a -- ^ lower bound of the interval; use @Just@ for a finite bound, and @Nothing@ for minus infinity
-> Maybe a -- ^ upper bound of the interval; use @Just@ for a finite bound, and @Nothing@ for minus infinity
-> Int
numberOfRealRootsInClosedInterval' spray =
if isUnivariate spray
then _numberOfRealRootsInClosedInterval signVariations' spray
Expand Down

0 comments on commit b2f46cb

Please sign in to comment.