exp-pairs-0.1.3.0: Linear programming over exponent pairs

Copyright(c) Andrew Lelechenko, 2014-2015
LicenseGPL-3
Maintainerandrew.lelechenko@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Math.ExpPairs.RatioInf

Description

Provides types and necessary instances for rational numbers, extended with infinite values. Just use RationalInf instead of Rational from Data.Ratio.

Synopsis

Documentation

data RatioInf t Source

Extends a rational type with positive and negative infinities.

Constructors

InfMinus

Negative infinity

Finite !(Ratio t)

Finite value

InfPlus

Positive infinity

Instances

Eq t => Eq (RatioInf t) 
Integral t => Fractional (RatioInf t) 
Integral t => Num (RatioInf t) 
Integral t => Ord (RatioInf t) 
Integral t => Real (RatioInf t) 
(Integral t, Show t) => Show (RatioInf t) 

type RationalInf = RatioInf Integer Source

Arbitrary-precision rational numbers with positive and negative infinities.