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 Source #

Constructors

MPBall 

Instances

Show MPBall Source # 
Generic MPBall Source # 

Associated Types

type Rep MPBall :: * -> * #

Methods

from :: MPBall -> Rep MPBall x #

to :: Rep MPBall x -> MPBall #

CanAbs MPBall Source # 

Associated Types

type AbsType MPBall :: * #

Methods

abs :: MPBall -> AbsType MPBall #

CanTestNaN MPBall Source # 

Methods

isNaN :: MPBall -> Bool #

CanTestFinite MPBall Source # 
CanNeg MPBall Source # 

Associated Types

type NegType MPBall :: * #

CanNormalize MPBall Source # 
HasNorm MPBall Source # 
CanSetPrecision MPBall Source # 
HasPrecision MPBall Source # 
HasApproximate MPBall Source # 
CanReduceSizeUsingAccuracyGuide MPBall Source # 
HasAccuracy MPBall Source # 
IsBall MPBall Source # 
SuitableForCE es => CanEnsureCE es MPBall Source # 

Associated Types

type EnsureCE es MPBall :: * #

type EnsureNoCE es MPBall :: * #

CanTestContains MPBall Int Source # 

Methods

contains :: MPBall -> Int -> Bool Source #

CanTestContains MPBall Integer Source # 
CanTestContains MPBall Rational Source # 
CanTestContains MPBall Dyadic Source # 

Methods

contains :: MPBall -> Dyadic -> Bool Source #

CanTestContains MPBall MPBall Source # 

Methods

contains :: MPBall -> MPBall -> Bool Source #

IsInterval MPBall MPFloat Source # 
IsInterval MPBall MPBall Source # 
type Rep MPBall Source # 
type Rep MPBall = D1 (MetaData "MPBall" "AERN2.MP.UseMPFR.Ball.Type" "aern2-mp-0.1.2.0-4siBxBMhdbWUPoUnpk8Vu" 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 Source # 
type NegType MPBall Source # 
type Approximate MPBall Source # 
type CentreType MPBall Source # 
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 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 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 EnsureNoCE es MPBall Source # 
type EnsureCE es MPBall Source # 
type UnionType MPBall MPBall Source # 
type IntersectionType MPBall MPBall Source # 
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 OrderCompareType MPBall (CollectErrors es b) # 
type EqCompareType MPBall (CollectErrors es b) # 
type UnionType MPBall (CollectErrors es b) Source # 
type IntersectionType MPBall (CollectErrors es b) Source # 
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 OrderCompareType (CollectErrors es a) MPBall # 
type EqCompareType (CollectErrors es a) MPBall # 
type UnionType (CollectErrors es a) MPBall Source # 
type IntersectionType (CollectErrors es a) MPBall Source # 

reducePrecionIfInaccurate :: MPBall -> MPBall Source #

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