Copyright | (c) Andrew Lelechenko 2014-2015 |
---|---|
License | GPL-3 |
Maintainer | andrew.lelechenko@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
Provides types and necessary instances for rational numbers, extended with infinite values. Just use RationalInf
instead of Rational
from Data.Ratio.
Documentation
Extends a rational type with 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.