aern2-mp-0.1.2.0: Multi-precision floats via MPFR

Copyright(c) Michal Konecny
LicenseBSD3
Maintainermikkonecny@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

AERN2.MP.Accuracy

Description

A type for roughly measuring the accuracy of an enclosure.

Synopsis

Documentation

data Accuracy #

A non-negative Double value to serve as an error bound. Arithmetic is rounded towards +infinity.

Constructors

NoInformation 
Exact 

Instances

Bounded Accuracy # 
Enum Accuracy # 
Eq Accuracy # 
Ord Accuracy # 
Show Accuracy # 
Arbitrary Accuracy # 
CanNeg Accuracy # 

Associated Types

type NegType Accuracy :: * #

CanMulAsymmetric Integer Accuracy # 

Associated Types

type MulType Integer Accuracy :: * #

CanMulAsymmetric Accuracy Integer # 

Associated Types

type MulType Accuracy Integer :: * #

CanAddAsymmetric Integer Accuracy # 

Associated Types

type AddType Integer Accuracy :: * #

CanAddAsymmetric Accuracy Integer # 

Associated Types

type AddType Accuracy Integer :: * #

CanAddAsymmetric Accuracy Accuracy # 

Associated Types

type AddType Accuracy Accuracy :: * #

CanSub Accuracy Integer # 

Associated Types

type SubType Accuracy Integer :: * #

CanSub Accuracy Accuracy # 

Associated Types

type SubType Accuracy Accuracy :: * #

CanMinMaxAsymmetric Int Accuracy # 

Associated Types

type MinMaxType Int Accuracy :: * #

CanMinMaxAsymmetric Integer Accuracy # 
CanMinMaxAsymmetric Accuracy Int # 

Associated Types

type MinMaxType Accuracy Int :: * #

CanMinMaxAsymmetric Accuracy Integer # 
CanMinMaxAsymmetric Accuracy Accuracy # 
HasEqAsymmetric Int Accuracy # 
HasEqAsymmetric Integer Accuracy # 
HasEqAsymmetric Accuracy Int # 
HasEqAsymmetric Accuracy Integer # 
HasEqAsymmetric Accuracy Accuracy # 
HasOrderAsymmetric Int Accuracy # 
HasOrderAsymmetric Integer Accuracy # 
HasOrderAsymmetric Accuracy Int # 
HasOrderAsymmetric Accuracy Integer # 
HasOrderAsymmetric Accuracy Accuracy # 
ConvertibleExactly Int Accuracy # 
ConvertibleExactly Integer Accuracy # 
ConvertibleExactly Precision Accuracy # 
ConvertibleExactly NormLog Accuracy # 
(Arrow to, CanUnionAsymmetric e1 e2) => CanUnionAsymmetric (to Accuracy e1) (to Accuracy e2) # 

Associated Types

type UnionType (to Accuracy e1) (to Accuracy e2) :: * #

Methods

union :: to Accuracy e1 -> to Accuracy e2 -> UnionType (to Accuracy e1) (to Accuracy e2) #

type NegType Accuracy # 
type MulType Integer Accuracy # 
type MulType Accuracy Integer # 
type AddType Integer Accuracy # 
type AddType Accuracy Integer # 
type AddType Accuracy Accuracy # 
type SubType Accuracy Integer # 
type SubType Accuracy Accuracy # 
type MinMaxType Int Accuracy # 
type MinMaxType Integer Accuracy # 
type MinMaxType Accuracy Int # 
type MinMaxType Accuracy Integer # 
type MinMaxType Accuracy Accuracy # 
type EqCompareType Int Accuracy # 
type EqCompareType Integer Accuracy # 
type EqCompareType Accuracy Int # 
type EqCompareType Accuracy Integer # 
type EqCompareType Accuracy Accuracy # 
type OrderCompareType Int Accuracy # 
type OrderCompareType Integer Accuracy # 
type OrderCompareType Accuracy Int # 
type OrderCompareType Accuracy Integer # 
type OrderCompareType Accuracy Accuracy # 
type UnionType (to Accuracy e1) (to Accuracy e2) # 
type UnionType (to Accuracy e1) (to Accuracy e2) = to Accuracy (UnionType e1 e2)

class HasAccuracyGuide a where #

Minimal complete definition

getAccuracyGuide

Methods

getAccuracyGuide :: a -> Accuracy #

class HasAccuracyGuide a => CanSetAccuracyGuide a where #

Minimal complete definition

setAccuracyGuide

Methods

setAccuracyGuide :: Accuracy -> a -> a #

getFiniteAccuracy :: (HasAccuracy t, HasPrecision t) => t -> Accuracy #

Return accuracy, except when the element is Exact, return its nominal Precision dressed as Accuracy. This function is useful when we have a convergent sequence where all elements happen to be actually equal to the limit and we need the property that the sequence elements keep improving.

setPrecisionAtLeastAccuracy :: CanSetPrecision t => Accuracy -> t -> t #

Change the precision so that it is at least as high as the supplied accuracy (assuming the accuracy is finite).

class HasApproximate t where #

An unsafe approximation of an enclosure or exact value, useful mainly for showing something brief and readable to humans.

Minimal complete definition

getApproximate

Associated Types

type Approximate t #

Methods

getApproximate :: Accuracy -> t -> Approximate t #

Instances