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.Type

Contents

Description

Arbitrary precision dyadic balls

Synopsis

Auxiliary types

The Ball type

data MPBall #

Constructors

MPBall 

Instances

Show MPBall # 
Generic MPBall # 

Associated Types

type Rep MPBall :: * -> * #

Methods

from :: MPBall -> Rep MPBall x #

to :: Rep MPBall x -> MPBall #

CanAbs MPBall # 

Associated Types

type AbsType MPBall :: * #

Methods

abs :: MPBall -> AbsType MPBall #

CanTestNaN MPBall # 

Methods

isNaN :: MPBall -> Bool #

CanTestFinite MPBall # 
CanNeg MPBall # 

Associated Types

type NegType MPBall :: * #

CanSetPrecision MPBall # 
HasPrecision MPBall # 
HasNorm MPBall # 

Methods

getNormLog :: MPBall -> NormLog #

HasApproximate MPBall # 

Associated Types

type Approximate MPBall :: * #

CanReduceSizeUsingAccuracyGuide MPBall # 
HasAccuracy MPBall # 
IsBall MPBall # 
CanNormalize MPBall # 

Methods

normalize :: MPBall -> MPBall #

SuitableForCE es => CanEnsureCE es MPBall # 

Associated Types

type EnsureCE es MPBall :: * #

type EnsureNoCE es MPBall :: * #

CanTestContains MPBall Int # 

Methods

contains :: MPBall -> Int -> Bool #

CanTestContains MPBall Integer # 

Methods

contains :: MPBall -> Integer -> Bool #

CanTestContains MPBall Rational # 

Methods

contains :: MPBall -> Rational -> Bool #

CanTestContains MPBall Dyadic # 

Methods

contains :: MPBall -> Dyadic -> Bool #

CanTestContains MPBall MPBall # 

Methods

contains :: MPBall -> MPBall -> Bool #

IsInterval MPBall MPFloat # 
IsInterval MPBall MPBall # 
type Rep MPBall # 
type Rep MPBall = D1 * (MetaData "MPBall" "AERN2.MP.UseMPFR.Ball.Type" "aern2-mp-0.1.2.0-Kh5QoRzHVWq3J81aPr9Llb" False) (C1 * (MetaCons "MPBall" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "ball_value") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MPFloat)) (S1 * (MetaSel (Just Symbol "ball_error") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ErrorBound))))
type SqrtType MPBall # 
type ExpType MPBall # 
type LogType MPBall # 
type SinCosType MPBall # 
type AbsType MPBall # 
type NegType MPBall # 
type Approximate MPBall # 
type CentreType MPBall # 
type DivType Int MPBall # 
type DivType Integer MPBall # 
type DivType Rational MPBall # 
type DivType Dyadic MPBall # 
type DivType MPBall Int # 
type DivType MPBall Integer # 
type DivType MPBall Rational # 
type DivType MPBall Dyadic # 
type DivType MPBall MPBall # 
type DivTypeNoCN Int MPBall # 
type DivTypeNoCN Integer MPBall # 
type DivTypeNoCN Rational MPBall # 
type DivTypeNoCN Dyadic MPBall # 
type DivTypeNoCN MPBall Int # 
type DivTypeNoCN MPBall Integer # 
type DivTypeNoCN MPBall Rational # 
type DivTypeNoCN MPBall Dyadic # 
type DivTypeNoCN MPBall MPBall # 
type MulType Int MPBall # 
type MulType Integer MPBall # 
type MulType Rational MPBall # 
type MulType Dyadic MPBall # 
type MulType MPBall Int # 
type MulType MPBall Integer # 
type MulType MPBall Rational # 
type MulType MPBall Dyadic # 
type MulType MPBall MPBall # 
type PowType MPBall Int # 
type PowType MPBall Integer # 
type PowType MPBall Rational # 
type PowType MPBall Dyadic # 
type PowType MPBall MPBall # 
type PowTypeNoCN MPBall Int # 
type PowTypeNoCN MPBall Integer # 
type PowTypeNoCN MPBall Rational # 
type PowTypeNoCN MPBall Dyadic # 
type PowTypeNoCN MPBall MPBall # 
type AddType Int MPBall # 
type AddType Integer MPBall # 
type AddType Rational MPBall # 
type AddType Dyadic MPBall # 
type AddType MPBall Int # 
type AddType MPBall Integer # 
type AddType MPBall Rational # 
type AddType MPBall Dyadic # 
type AddType MPBall MPBall # 
type SubType Int MPBall # 
type SubType Integer MPBall # 
type SubType Rational MPBall # 
type SubType Dyadic MPBall # 
type SubType MPBall Int # 
type SubType MPBall Integer # 
type SubType MPBall Rational # 
type SubType MPBall Dyadic # 
type SubType MPBall MPBall # 
type MinMaxType Int MPBall # 
type MinMaxType Integer MPBall # 
type MinMaxType Rational MPBall # 
type MinMaxType Dyadic MPBall # 
type MinMaxType MPBall Int # 
type MinMaxType MPBall Integer # 
type MinMaxType MPBall Rational # 
type MinMaxType MPBall Dyadic # 
type MinMaxType MPBall MPBall # 
type EqCompareType Int MPBall # 
type EqCompareType Integer MPBall # 
type EqCompareType Rational MPBall # 
type EqCompareType Dyadic MPBall # 
type EqCompareType MPBall Int # 
type EqCompareType MPBall Integer # 
type EqCompareType MPBall Rational # 
type EqCompareType MPBall Dyadic # 
type EqCompareType MPBall MPBall # 
type OrderCompareType Int MPBall # 
type OrderCompareType Integer MPBall # 
type OrderCompareType Rational MPBall # 
type OrderCompareType Dyadic MPBall # 
type OrderCompareType MPBall Int # 
type OrderCompareType MPBall Integer # 
type OrderCompareType MPBall Rational # 
type OrderCompareType MPBall Dyadic # 
type OrderCompareType MPBall MPBall # 
type EnsureNoCE es MPBall # 
type EnsureCE es MPBall # 
type UnionType MPBall MPBall # 
type IntersectionType MPBall MPBall # 
type DivType MPBall (CollectErrors es b) # 
type DivTypeNoCN MPBall (CollectErrors es b) # 
type MulType MPBall (CollectErrors es b) # 
type PowType MPBall (CollectErrors es b) # 
type PowTypeNoCN MPBall (CollectErrors es b) # 
type AddType MPBall (CollectErrors es b) # 
type SubType MPBall (CollectErrors es b) # 
type MinMaxType MPBall (CollectErrors es b) # 
type EqCompareType MPBall (CollectErrors es b) # 
type OrderCompareType MPBall (CollectErrors es b) # 
type UnionType MPBall (CollectErrors es b) # 
type IntersectionType MPBall (CollectErrors es b) # 
type DivType (CollectErrors es a) MPBall # 
type DivTypeNoCN (CollectErrors es a) MPBall # 
type MulType (CollectErrors es a) MPBall # 
type PowType (CollectErrors es a) MPBall # 
type PowTypeNoCN (CollectErrors es a) MPBall # 
type AddType (CollectErrors es a) MPBall # 
type SubType (CollectErrors es a) MPBall # 
type MinMaxType (CollectErrors es a) MPBall # 
type EqCompareType (CollectErrors es a) MPBall # 
type OrderCompareType (CollectErrors es a) MPBall # 
type UnionType (CollectErrors es a) MPBall # 
type IntersectionType (CollectErrors es a) MPBall # 

mpBall :: CanBeMPBall t => t -> MPBall #

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.

Ball construction/extraction functions