Copyright | (c) Andrew Lelechenko 2014-2020 |
---|---|
License | GPL-3 |
Maintainer | andrew.lelechenko@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Rational numbers extended with infinities.
Documentation
Extend Ratio
t
with \( \pm \infty \) positive and negative
infinities.
Instances
Eq t => Eq (RatioInf t) Source # | |
Integral t => Fractional (RatioInf t) Source # | |
Integral t => Num (RatioInf t) Source # | |
Defined in Math.ExpPairs.RatioInf | |
Integral t => Ord (RatioInf t) Source # | |
Integral t => Real (RatioInf t) Source # | |
Defined in Math.ExpPairs.RatioInf toRational :: RatioInf t -> Rational # | |
Show t => Show (RatioInf t) Source # | |
(Integral t, Pretty t) => Pretty (RatioInf t) Source # | |
Defined in Math.ExpPairs.RatioInf |
type RationalInf = RatioInf Integer Source #
Arbitrary-precision rational numbers with positive and negative infinities.