numbers-3000.2.0.2: Various number types

Safe Haskell | Safe-Inferred
Language | Haskell98

Data.Number.Interval

Description

An incomplete implementation of interval aritrhmetic.

# Documentation

data Interval a Source #

#### Instances

Instances details

(Ord a, Num a) => Num (Interval a) Source # |
Instance details Defined in Data.Number.Interval Methods (+) :: Interval a -> Interval a -> Interval a Source # (-) :: Interval a -> Interval a -> Interval a Source # (*) :: Interval a -> Interval a -> Interval a Source # negate :: Interval a -> Interval a Source # abs :: Interval a -> Interval a Source # signum :: Interval a -> Interval a Source # fromInteger :: Integer -> Interval a Source #
(Ord a, Fractional a) => Fractional (Interval a) Source # |
Instance details Defined in Data.Number.Interval Methods (/) :: Interval a -> Interval a -> Interval a Source # recip :: Interval a -> Interval a Source # fromRational :: Rational -> Interval a Source #
(Eq a, Show a) => Show (Interval a) Source # |
Instance details Defined in Data.Number.Interval Methods showsPrec :: Int -> Interval a -> ShowS Source # show :: Interval a -> String Source # showList :: [Interval a] -> ShowS Source #
Ord a => Eq (Interval a) Source # |
Instance details Defined in Data.Number.Interval Methods (==) :: Interval a -> Interval a -> Bool Source # (/=) :: Interval a -> Interval a -> Bool Source #
Ord a => Ord (Interval a) Source # |

Instance details

Defined in Data.Number.Interval

Methods

compare :: Interval a -> Interval a -> Ordering Source #

(<) :: Interval a -> Interval a -> Bool Source #

(<=) :: Interval a -> Interval a -> Bool Source #

(>) :: Interval a -> Interval a -> Bool Source #

(>=) :: Interval a -> Interval a -> Bool Source #

max :: Interval a -> Interval a -> Interval a Source #

min :: Interval a -> Interval a -> Interval a Source #

ival :: Ord a => a -> a -> Interval a Source #

getIval :: Interval a -> (a, a) Source #