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.UseMPFR.Ball.Comparisons

Contents

Description

Comparisons of arbitrary precision dyadic balls

Synopsis

Auxiliary types

module AERN2.Norm

Ball operations (see also instances)

reducePrecionIfInaccurate :: MPBall -> MPBall #

Reduce the precision of the ball centre if the accuracy of the ball is poor.

More precisely, reduce the precision of the centre so that the ulp is approximately (radius / 1024), unless the ulp is already lower than this.

Helpers for constructing ball functions

byEndpointsMP :: (MPFloat -> MPFloat -> MPFloat) -> MPBall -> MPBall -> MPBall #

Computes an *increasing* ball fucntion f from *exact* MPFR operations.

Orphan instances

CanTestInteger MPBall # 
CanTestZero MPBall # 
CanTestPosNeg MPBall # 
CanMinMaxAsymmetric Int MPBall # 

Associated Types

type MinMaxType Int MPBall :: * #

CanMinMaxAsymmetric Integer MPBall # 
CanMinMaxAsymmetric Rational MPBall # 
CanMinMaxAsymmetric Dyadic MPBall # 
CanMinMaxAsymmetric MPBall Int # 

Associated Types

type MinMaxType MPBall Int :: * #

CanMinMaxAsymmetric MPBall Integer # 
CanMinMaxAsymmetric MPBall Rational # 
CanMinMaxAsymmetric MPBall Dyadic # 
CanMinMaxAsymmetric MPBall MPBall # 
HasEqAsymmetric Int MPBall # 
HasEqAsymmetric Integer MPBall # 
HasEqAsymmetric Rational MPBall # 
HasEqAsymmetric Dyadic MPBall # 
HasEqAsymmetric MPBall Int # 
HasEqAsymmetric MPBall Integer # 
HasEqAsymmetric MPBall Rational # 
HasEqAsymmetric MPBall Dyadic # 
HasEqAsymmetric MPBall MPBall # 
HasOrderAsymmetric Int MPBall # 
HasOrderAsymmetric Integer MPBall # 
HasOrderAsymmetric Rational MPBall # 
HasOrderAsymmetric Dyadic MPBall # 
HasOrderAsymmetric MPBall Int # 
HasOrderAsymmetric MPBall Integer # 
HasOrderAsymmetric MPBall Rational # 
HasOrderAsymmetric MPBall Dyadic # 
HasOrderAsymmetric MPBall MPBall # 
CanUnionAsymmetric MPBall MPBall # 

Associated Types

type UnionType MPBall MPBall :: * #

CanIntersectAsymmetric MPBall MPBall # 
(CanMinMaxAsymmetric MPBall b, CanEnsureCE es b, CanEnsureCE es (MinMaxType MPBall b), SuitableForCE es) => CanMinMaxAsymmetric MPBall (CollectErrors es b) # 

Associated Types

type MinMaxType MPBall (CollectErrors es b) :: * #

(HasEqAsymmetric MPBall b, CanEnsureCE es b, CanEnsureCE es (EqCompareType MPBall b), IsBool (EnsureCE es (EqCompareType MPBall b)), SuitableForCE es) => HasEqAsymmetric MPBall (CollectErrors es b) # 
(HasOrderAsymmetric MPBall b, CanEnsureCE es b, CanEnsureCE es (OrderCompareType MPBall b), IsBool (EnsureCE es (OrderCompareType MPBall b)), SuitableForCE es) => HasOrderAsymmetric MPBall (CollectErrors es b) # 
(CanUnionAsymmetric MPBall b, CanEnsureCE es b, CanEnsureCE es (UnionType MPBall b), SuitableForCE es) => CanUnionAsymmetric MPBall (CollectErrors es b) # 

Associated Types

type UnionType MPBall (CollectErrors es b) :: * #

(CanIntersectAsymmetric MPBall b, CanEnsureCE es b, CanEnsureCE es (IntersectionType MPBall b), SuitableForCE es) => CanIntersectAsymmetric MPBall (CollectErrors es b) # 

Associated Types

type IntersectionType MPBall (CollectErrors es b) :: * #

(CanMinMaxAsymmetric a MPBall, CanEnsureCE es a, CanEnsureCE es (MinMaxType a MPBall), SuitableForCE es) => CanMinMaxAsymmetric (CollectErrors es a) MPBall # 

Associated Types

type MinMaxType (CollectErrors es a) MPBall :: * #

(HasEqAsymmetric a MPBall, CanEnsureCE es a, CanEnsureCE es (EqCompareType a MPBall), IsBool (EnsureCE es (EqCompareType a MPBall)), SuitableForCE es) => HasEqAsymmetric (CollectErrors es a) MPBall # 
(HasOrderAsymmetric a MPBall, CanEnsureCE es a, CanEnsureCE es (OrderCompareType a MPBall), IsBool (EnsureCE es (OrderCompareType a MPBall)), SuitableForCE es) => HasOrderAsymmetric (CollectErrors es a) MPBall # 
(CanUnionAsymmetric a MPBall, CanEnsureCE es a, CanEnsureCE es (UnionType a MPBall), SuitableForCE es) => CanUnionAsymmetric (CollectErrors es a) MPBall # 

Associated Types

type UnionType (CollectErrors es a) MPBall :: * #

(CanIntersectAsymmetric a MPBall, CanEnsureCE es a, CanEnsureCE es (IntersectionType a MPBall), SuitableForCE es) => CanIntersectAsymmetric (CollectErrors es a) MPBall # 

Associated Types

type IntersectionType (CollectErrors es a) MPBall :: * #