aern2-mp-0.2.10.0: Multi-precision ball (interval) arithmetic
Copyright(c) Michal Konecny
LicenseBSD3
Maintainermikkonecny@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

AERN2.MP.Precision

Description

Precision type and its operations. Precision expresses a limit on the size of an approximation, roughly corresponding to the number of significant bits for a floating-point number and its generalisations to other types.

Documentation

data Precision Source #

Instances

Instances details
Enum Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Eq Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Integral Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Num Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Ord Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Real Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Show Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Arbitrary Precision Source # 
Instance details

Defined in AERN2.MP.Precision

CanMulAsymmetric Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type MulType Integer Precision #

CanMulAsymmetric Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type MulType Precision Integer #

CanMulAsymmetric Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type MulType Precision Precision #

CanAddAsymmetric Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type AddType Integer Precision #

CanAddAsymmetric Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type AddType Precision Integer #

CanAddAsymmetric Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type AddType Precision Precision #

CanMinMaxAsymmetric Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type MinMaxType Precision Precision #

HasEqAsymmetric Int Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type EqCompareType Int Precision #

HasEqAsymmetric Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type EqCompareType Integer Precision #

HasEqAsymmetric Precision Int Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type EqCompareType Precision Int #

HasEqAsymmetric Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type EqCompareType Precision Integer #

HasEqAsymmetric Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type EqCompareType Precision Precision #

HasOrderAsymmetric Int Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type OrderCompareType Int Precision #

HasOrderAsymmetric Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type OrderCompareType Integer Precision #

HasOrderAsymmetric Precision Int Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type OrderCompareType Precision Int #

HasOrderAsymmetric Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type OrderCompareType Precision Integer #

HasOrderAsymmetric Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

Associated Types

type OrderCompareType Precision Precision #

ConvertibleExactly Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

ConvertibleExactly Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

ConvertibleExactly Precision Accuracy Source # 
Instance details

Defined in AERN2.MP.Accuracy

type MulType Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type MulType Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

type MulType Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type AddType Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type AddType Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

type AddType Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type MinMaxType Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type EqCompareType Int Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type EqCompareType Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type EqCompareType Precision Int Source # 
Instance details

Defined in AERN2.MP.Precision

type EqCompareType Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

type EqCompareType Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type OrderCompareType Int Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type OrderCompareType Integer Precision Source # 
Instance details

Defined in AERN2.MP.Precision

type OrderCompareType Precision Int Source # 
Instance details

Defined in AERN2.MP.Precision

type OrderCompareType Precision Integer Source # 
Instance details

Defined in AERN2.MP.Precision

type OrderCompareType Precision Precision Source # 
Instance details

Defined in AERN2.MP.Precision

class HasPrecision t where Source #

Instances

Instances details
HasPrecision Bool Source # 
Instance details

Defined in AERN2.MP.Precision

HasPrecision MPFloat Source # 
Instance details

Defined in AERN2.MP.Float.Type

HasPrecision Dyadic Source # 
Instance details

Defined in AERN2.MP.Dyadic

HasPrecision MPBall Source # 
Instance details

Defined in AERN2.MP.Ball.Type

HasPrecision t => HasPrecision (Maybe t) Source # 
Instance details

Defined in AERN2.MP.Precision

HasPrecision t => HasPrecision (Complex t) Source # 
Instance details

Defined in AERN2.MP.Precision

HasPrecision t => HasPrecision (CollectErrors es t) Source # 
Instance details

Defined in AERN2.MP.Precision

class CanSetPrecision t where Source #

Methods

setPrecision :: Precision -> t -> t Source #

Instances

Instances details
CanSetPrecision Bool Source # 
Instance details

Defined in AERN2.MP.Precision

CanSetPrecision MPFloat Source # 
Instance details

Defined in AERN2.MP.Float.Type

CanSetPrecision MPBall Source # 
Instance details

Defined in AERN2.MP.Ball.Type

CanSetPrecision t => CanSetPrecision (Maybe t) Source # 
Instance details

Defined in AERN2.MP.Precision

CanSetPrecision t => CanSetPrecision (Complex t) Source # 
Instance details

Defined in AERN2.MP.Precision

CanSetPrecision t => CanSetPrecision (CollectErrors es t) Source # 
Instance details

Defined in AERN2.MP.Precision

specCanSetPrecision :: (HasPrecision t, CanSetPrecision t, CanTestFinite t, Arbitrary t, Show t, Testable prop) => T t -> (t -> t -> prop) -> Spec Source #

iterateUntilOK :: Precision -> (a -> Bool) -> (Precision -> a) -> [(Precision, a)] Source #

class ConvertibleWithPrecision t1 t2 where Source #

Instances

Instances details
ConvertibleWithPrecision Int MPBall Source # 
Instance details

Defined in AERN2.MP.Ball.Conversions

ConvertibleWithPrecision Integer MPBall Source # 
Instance details

Defined in AERN2.MP.Ball.Conversions

ConvertibleWithPrecision Rational MPBall Source # 
Instance details

Defined in AERN2.MP.Ball.Conversions

ConvertibleWithPrecision Dyadic MPBall Source # 
Instance details

Defined in AERN2.MP.Ball.Conversions

(ConvertibleWithPrecision Bool t, CanBeErrors es) => ConvertibleWithPrecision Bool (CollectErrors es t) Source # 
Instance details

Defined in AERN2.MP.Precision

(ConvertibleWithPrecision Double t, CanBeErrors es) => ConvertibleWithPrecision Double (CollectErrors es t) Source # 
Instance details

Defined in AERN2.MP.Precision

(ConvertibleWithPrecision Int t, CanBeErrors es) => ConvertibleWithPrecision Int (CollectErrors es t) Source # 
Instance details

Defined in AERN2.MP.Precision

(ConvertibleWithPrecision Integer t, CanBeErrors es) => ConvertibleWithPrecision Integer (CollectErrors es t) Source # 
Instance details

Defined in AERN2.MP.Precision

(ConvertibleWithPrecision Rational t, CanBeErrors es) => ConvertibleWithPrecision Rational (CollectErrors es t) Source # 
Instance details

Defined in AERN2.MP.Precision

ConvertibleWithPrecision (Rational, Rational) MPBall Source # 
Instance details

Defined in AERN2.MP.Ball.Conversions

convertPFirst :: (ConvertibleWithPrecision t1 t2, HasPrecision t2) => (t2 -> t2 -> c) -> t1 -> t2 -> c Source #

convertPSecond :: (ConvertibleWithPrecision t2 t1, HasPrecision t1) => (t1 -> t1 -> c) -> t1 -> t2 -> c Source #