aern2-real-0.1.0.3: Exact real numbers via Cauchy sequences and MPFR

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

AERN2.WithGlobalParam.Type

Contents

Description

The type of values that depends on an immutable gloabal parameter, such as FP precision.

Synopsis

The protocol and type of fast converging sequences

data WithGlobalParamP prm a Source #

Constructors

WithGlobalParamP 

Instances

(SuitableForCE es, CanEnsureCE es a) => CanEnsureCE es (WithGlobalParamP prm a) Source # 

Associated Types

type EnsureCE es (WithGlobalParamP prm a) :: * #

type EnsureNoCE es (WithGlobalParamP prm a) :: * #

(Arrow to, SuitableForCE es, CanEnsureCE es a) => CanEnsureCE es (WithGlobalParamA to prm a) Source # 

Associated Types

type EnsureCE es (WithGlobalParamA to prm a) :: * #

type EnsureNoCE es (WithGlobalParamA to prm a) :: * #

Methods

ensureCE :: Maybe es -> WithGlobalParamA to prm a -> EnsureCE es (WithGlobalParamA to prm a) #

deEnsureCE :: Maybe es -> EnsureCE es (WithGlobalParamA to prm a) -> Either es (WithGlobalParamA to prm a) #

ensureNoCE :: Maybe es -> WithGlobalParamA to prm a -> (Maybe (EnsureNoCE es (WithGlobalParamA to prm a)), es) #

noValueECE :: Maybe (WithGlobalParamA to prm a) -> es -> EnsureCE es (WithGlobalParamA to prm a) #

prependErrorsECE :: Maybe (WithGlobalParamA to prm a) -> es -> EnsureCE es (WithGlobalParamA to prm a) -> EnsureCE es (WithGlobalParamA to prm a) #

Functor (WithGlobalParamP prm) Source # 

Methods

fmap :: (a -> b) -> WithGlobalParamP prm a -> WithGlobalParamP prm b #

(<$) :: a -> WithGlobalParamP prm b -> WithGlobalParamP prm a #

(Show a, Show prm) => Show (WithGlobalParamP prm a) Source # 
SuitableForWGParam prm a => QAProtocolCacheable (WithGlobalParamP prm a) Source # 
(Show a, Show prm) => QAProtocol (WithGlobalParamP prm a) Source # 

Associated Types

type Q (WithGlobalParamP prm a) :: * Source #

type A (WithGlobalParamP prm a) :: * Source #

type EnsureNoCE es (WithGlobalParamP prm a) Source # 
type EnsureCE es (WithGlobalParamP prm a) Source # 
type EnsureCE es (WithGlobalParamP prm a) = WithGlobalParamP prm (EnsureCE es a)
type DivType Int (WithGlobalParamA to0 prm0 b0) # 
type DivType Int (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (DivType Int b0)
type DivType Integer (WithGlobalParamA to0 prm0 b0) # 
type DivType Integer (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (DivType Integer b0)
type DivType Rational (WithGlobalParamA to0 prm0 b0) # 
type DivType Dyadic (WithGlobalParamA to0 prm0 b0) # 
type DivType Dyadic (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (DivType Dyadic b0)
type DivTypeNoCN Int (WithGlobalParamA to0 prm0 b0) # 
type DivTypeNoCN Int (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (DivTypeNoCN Int b0)
type DivTypeNoCN Integer (WithGlobalParamA to0 prm0 b0) # 
type DivTypeNoCN Rational (WithGlobalParamA to0 prm0 b0) # 
type DivTypeNoCN Dyadic (WithGlobalParamA to0 prm0 b0) # 
type MulType Int (WithGlobalParamA to0 prm0 b0) # 
type MulType Int (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (MulType Int b0)
type MulType Integer (WithGlobalParamA to0 prm0 b0) # 
type MulType Integer (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (MulType Integer b0)
type MulType Rational (WithGlobalParamA to0 prm0 b0) # 
type MulType Dyadic (WithGlobalParamA to0 prm0 b0) # 
type MulType Dyadic (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (MulType Dyadic b0)
type PowType Int (WithGlobalParamA to0 prm0 a0) # 
type PowType Int (WithGlobalParamA to0 prm0 a0) = WithGlobalParamA to0 prm0 (PowType Int a0)
type PowType Integer (WithGlobalParamA to0 prm0 a0) # 
type PowType Integer (WithGlobalParamA to0 prm0 a0) = WithGlobalParamA to0 prm0 (PowType Integer a0)
type PowType Rational (WithGlobalParamA to0 prm0 a0) # 
type PowType Dyadic (WithGlobalParamA to0 prm0 a0) # 
type PowType Dyadic (WithGlobalParamA to0 prm0 a0) = WithGlobalParamA to0 prm0 (PowType Dyadic a0)
type PowTypeNoCN Int (WithGlobalParamA to0 prm0 a0) # 
type PowTypeNoCN Int (WithGlobalParamA to0 prm0 a0) = WithGlobalParamA to0 prm0 (PowTypeNoCN Int a0)
type PowTypeNoCN Integer (WithGlobalParamA to0 prm0 a0) # 
type PowTypeNoCN Rational (WithGlobalParamA to0 prm0 a0) # 
type PowTypeNoCN Dyadic (WithGlobalParamA to0 prm0 a0) # 
type AddType Int (WithGlobalParamA to0 prm0 b0) # 
type AddType Int (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (AddType Int b0)
type AddType Integer (WithGlobalParamA to0 prm0 b0) # 
type AddType Integer (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (AddType Integer b0)
type AddType Rational (WithGlobalParamA to0 prm0 b0) # 
type AddType Dyadic (WithGlobalParamA to0 prm0 b0) # 
type AddType Dyadic (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (AddType Dyadic b0)
type SubType Int (WithGlobalParamA to0 prm0 b0) # 
type SubType Int (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (SubType Int b0)
type SubType Integer (WithGlobalParamA to0 prm0 b0) # 
type SubType Integer (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (SubType Integer b0)
type SubType Rational (WithGlobalParamA to0 prm0 b0) # 
type SubType Dyadic (WithGlobalParamA to0 prm0 b0) # 
type SubType Dyadic (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (SubType Dyadic b0)
type MinMaxType Int (WithGlobalParamA to0 prm0 b0) # 
type MinMaxType Int (WithGlobalParamA to0 prm0 b0) = WithGlobalParamA to0 prm0 (MinMaxType Int b0)
type MinMaxType Integer (WithGlobalParamA to0 prm0 b0) # 
type MinMaxType Rational (WithGlobalParamA to0 prm0 b0) # 
type MinMaxType Dyadic (WithGlobalParamA to0 prm0 b0) # 
type OrderCompareType Int (WithGlobalParamA to0 prm0 a0) # 
type OrderCompareType Integer (WithGlobalParamA to0 prm0 a0) # 
type OrderCompareType Rational (WithGlobalParamA to0 prm0 a0) # 
type OrderCompareType Dyadic (WithGlobalParamA to0 prm0 a0) # 
type EqCompareType Int (WithGlobalParamA to0 prm0 a0) # 
type EqCompareType Integer (WithGlobalParamA to0 prm0 a0) # 
type EqCompareType Rational (WithGlobalParamA to0 prm0 a0) # 
type EqCompareType Dyadic (WithGlobalParamA to0 prm0 a0) # 
type EnsureNoCE es (WithGlobalParamA to prm a) Source # 
type EnsureNoCE es (WithGlobalParamA to prm a) = WithGlobalParamA to prm (EnsureNoCE es a)
type EnsureCE es (WithGlobalParamA to prm a) Source # 
type EnsureCE es (WithGlobalParamA to prm a) = WithGlobalParamA to prm (EnsureCE es a)
type QACache (WithGlobalParamP prm a) Source # 
type QACache (WithGlobalParamP prm a) = Maybe (a, prm)
type Q (WithGlobalParamP prm a) Source # 
type Q (WithGlobalParamP prm a) = prm
type A (WithGlobalParamP prm a) Source # 
type A (WithGlobalParamP prm a) = a
type DivType (CollectErrors es a) (WithGlobalParamA to prm b) # 
type DivType (CollectErrors es a) (WithGlobalParamA to prm b) = EnsureCE es (DivType a (WithGlobalParamA to prm b))
type DivTypeNoCN (CollectErrors es a) (WithGlobalParamA to prm b) # 
type MulType (CollectErrors es a) (WithGlobalParamA to prm b) # 
type MulType (CollectErrors es a) (WithGlobalParamA to prm b) = EnsureCE es (MulType a (WithGlobalParamA to prm b))
type PowType (CollectErrors es a) (WithGlobalParamA to prm b) # 
type PowType (CollectErrors es a) (WithGlobalParamA to prm b) = EnsureCE es (PowType a (WithGlobalParamA to prm b))
type PowTypeNoCN (CollectErrors es a) (WithGlobalParamA to prm b) # 
type AddType (CollectErrors es a) (WithGlobalParamA to prm b) # 
type AddType (CollectErrors es a) (WithGlobalParamA to prm b) = EnsureCE es (AddType a (WithGlobalParamA to prm b))
type SubType (CollectErrors es a) (WithGlobalParamA to prm b) # 
type SubType (CollectErrors es a) (WithGlobalParamA to prm b) = EnsureCE es (SubType a (WithGlobalParamA to prm b))
type MinMaxType (CollectErrors es a) (WithGlobalParamA to prm b) # 
type OrderCompareType (CollectErrors es a) (WithGlobalParamA to prm b) # 
type EqCompareType (CollectErrors es a) (WithGlobalParamA to prm b) # 
type SqrtType (WithGlobalParamA to prm a) # 
type SqrtType (WithGlobalParamA to prm a) = WithGlobalParamA to prm (SqrtType a)
type ExpType (WithGlobalParamA to prm a) # 
type ExpType (WithGlobalParamA to prm a) = WithGlobalParamA to prm (ExpType a)
type LogType (WithGlobalParamA to prm a) # 
type LogType (WithGlobalParamA to prm a) = WithGlobalParamA to prm (LogType a)
type SinCosType (WithGlobalParamA to prm a) # 
type AbsType (WithGlobalParamA to prm a) # 
type AbsType (WithGlobalParamA to prm a) = WithGlobalParamA to prm (AbsType a)
type NegType (WithGlobalParamA to prm a) # 
type NegType (WithGlobalParamA to prm a) = WithGlobalParamA to prm (NegType a)
type DivType (WithGlobalParamA to0 prm0 a0) Dyadic # 
type DivType (WithGlobalParamA to0 prm0 a0) Dyadic = WithGlobalParamA to0 prm0 (DivType a0 Dyadic)
type DivType (WithGlobalParamA to0 prm0 a0) Rational # 
type DivType (WithGlobalParamA to0 prm0 a0) Int # 
type DivType (WithGlobalParamA to0 prm0 a0) Int = WithGlobalParamA to0 prm0 (DivType a0 Int)
type DivType (WithGlobalParamA to0 prm0 a0) Integer # 
type DivType (WithGlobalParamA to0 prm0 a0) Integer = WithGlobalParamA to0 prm0 (DivType a0 Integer)
type DivTypeNoCN (WithGlobalParamA to0 prm0 a0) Dyadic # 
type DivTypeNoCN (WithGlobalParamA to0 prm0 a0) Rational # 
type DivTypeNoCN (WithGlobalParamA to0 prm0 a0) Int # 
type DivTypeNoCN (WithGlobalParamA to0 prm0 a0) Int = WithGlobalParamA to0 prm0 (DivTypeNoCN a0 Int)
type DivTypeNoCN (WithGlobalParamA to0 prm0 a0) Integer # 
type MulType (WithGlobalParamA to0 prm0 a0) Dyadic # 
type MulType (WithGlobalParamA to0 prm0 a0) Dyadic = WithGlobalParamA to0 prm0 (MulType a0 Dyadic)
type MulType (WithGlobalParamA to0 prm0 a0) Rational # 
type MulType (WithGlobalParamA to0 prm0 a0) Int # 
type MulType (WithGlobalParamA to0 prm0 a0) Int = WithGlobalParamA to0 prm0 (MulType a0 Int)
type MulType (WithGlobalParamA to0 prm0 a0) Integer # 
type MulType (WithGlobalParamA to0 prm0 a0) Integer = WithGlobalParamA to0 prm0 (MulType a0 Integer)
type PowType (WithGlobalParamA to0 prm0 a0) Rational # 
type PowType (WithGlobalParamA to0 prm0 a0) Dyadic # 
type PowType (WithGlobalParamA to0 prm0 a0) Dyadic = WithGlobalParamA to0 prm0 (PowType a0 Dyadic)
type PowType (WithGlobalParamA to0 prm0 a0) Int # 
type PowType (WithGlobalParamA to0 prm0 a0) Int = WithGlobalParamA to0 prm0 (PowType a0 Int)
type PowType (WithGlobalParamA to0 prm0 a0) Integer # 
type PowType (WithGlobalParamA to0 prm0 a0) Integer = WithGlobalParamA to0 prm0 (PowType a0 Integer)
type PowTypeNoCN (WithGlobalParamA to0 prm0 a0) Rational # 
type PowTypeNoCN (WithGlobalParamA to0 prm0 a0) Dyadic # 
type PowTypeNoCN (WithGlobalParamA to0 prm0 a0) Int # 
type PowTypeNoCN (WithGlobalParamA to0 prm0 a0) Int = WithGlobalParamA to0 prm0 (PowTypeNoCN a0 Int)
type PowTypeNoCN (WithGlobalParamA to0 prm0 a0) Integer # 
type AddType (WithGlobalParamA to0 prm0 a0) Dyadic # 
type AddType (WithGlobalParamA to0 prm0 a0) Dyadic = WithGlobalParamA to0 prm0 (AddType a0 Dyadic)
type AddType (WithGlobalParamA to0 prm0 a0) Rational # 
type AddType (WithGlobalParamA to0 prm0 a0) Int # 
type AddType (WithGlobalParamA to0 prm0 a0) Int = WithGlobalParamA to0 prm0 (AddType a0 Int)
type AddType (WithGlobalParamA to0 prm0 a0) Integer # 
type AddType (WithGlobalParamA to0 prm0 a0) Integer = WithGlobalParamA to0 prm0 (AddType a0 Integer)
type SubType (WithGlobalParamA to0 prm0 a0) Dyadic # 
type SubType (WithGlobalParamA to0 prm0 a0) Dyadic = WithGlobalParamA to0 prm0 (SubType a0 Dyadic)
type SubType (WithGlobalParamA to0 prm0 a0) Rational # 
type SubType (WithGlobalParamA to0 prm0 a0) Int # 
type SubType (WithGlobalParamA to0 prm0 a0) Int = WithGlobalParamA to0 prm0 (SubType a0 Int)
type SubType (WithGlobalParamA to0 prm0 a0) Integer # 
type SubType (WithGlobalParamA to0 prm0 a0) Integer = WithGlobalParamA to0 prm0 (SubType a0 Integer)
type MinMaxType (WithGlobalParamA to0 prm0 a0) Dyadic # 
type MinMaxType (WithGlobalParamA to0 prm0 a0) Rational # 
type MinMaxType (WithGlobalParamA to0 prm0 a0) Int # 
type MinMaxType (WithGlobalParamA to0 prm0 a0) Int = WithGlobalParamA to0 prm0 (MinMaxType a0 Int)
type MinMaxType (WithGlobalParamA to0 prm0 a0) Integer # 
type OrderCompareType (WithGlobalParamA to0 prm0 a0) Dyadic # 
type OrderCompareType (WithGlobalParamA to0 prm0 a0) Rational # 
type OrderCompareType (WithGlobalParamA to0 prm0 a0) Int # 
type OrderCompareType (WithGlobalParamA to0 prm0 a0) Integer # 
type EqCompareType (WithGlobalParamA to0 prm0 a0) Dyadic # 
type EqCompareType (WithGlobalParamA to0 prm0 a0) Rational # 
type EqCompareType (WithGlobalParamA to0 prm0 a0) Int # 
type EqCompareType (WithGlobalParamA to0 prm0 a0) Integer # 
type DivType (WithGlobalParamA to prm a) (CollectErrors es b) # 
type DivType (WithGlobalParamA to prm a) (CollectErrors es b) = EnsureCE es (DivType (WithGlobalParamA to prm a) b)
type DivTypeNoCN (WithGlobalParamA to prm a) (CollectErrors es b) # 
type MulType (WithGlobalParamA to prm a) (CollectErrors es b) # 
type MulType (WithGlobalParamA to prm a) (CollectErrors es b) = EnsureCE es (MulType (WithGlobalParamA to prm a) b)
type PowType (WithGlobalParamA to prm a) (CollectErrors es b) # 
type PowType (WithGlobalParamA to prm a) (CollectErrors es b) = EnsureCE es (PowType (WithGlobalParamA to prm a) b)
type PowTypeNoCN (WithGlobalParamA to prm a) (CollectErrors es b) # 
type AddType (WithGlobalParamA to prm a) (CollectErrors es b) # 
type AddType (WithGlobalParamA to prm a) (CollectErrors es b) = EnsureCE es (AddType (WithGlobalParamA to prm a) b)
type SubType (WithGlobalParamA to prm a) (CollectErrors es b) # 
type SubType (WithGlobalParamA to prm a) (CollectErrors es b) = EnsureCE es (SubType (WithGlobalParamA to prm a) b)
type MinMaxType (WithGlobalParamA to prm a) (CollectErrors es b) # 
type OrderCompareType (WithGlobalParamA to prm a) (CollectErrors es b) # 
type EqCompareType (WithGlobalParamA to prm a) (CollectErrors es b) # 
type DivType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type DivType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) = WithGlobalParamA to prm (DivType a b)
type DivTypeNoCN (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type MulType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type MulType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) = WithGlobalParamA to prm (MulType a b)
type PowType (WithGlobalParamA to prm a) (WithGlobalParamA to prm e) # 
type PowType (WithGlobalParamA to prm a) (WithGlobalParamA to prm e) = WithGlobalParamA to prm (PowType a e)
type PowTypeNoCN (WithGlobalParamA to prm a) (WithGlobalParamA to prm e) # 
type AddType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type AddType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) = WithGlobalParamA to prm (AddType a b)
type SubType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type SubType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) = WithGlobalParamA to prm (SubType a b)
type MinMaxType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type MinMaxType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) = WithGlobalParamA to prm (MinMaxType a b)
type OrderCompareType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type EqCompareType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type AndOrType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) # 
type AndOrType (WithGlobalParamA to prm a) (WithGlobalParamA to prm b) = WithGlobalParamA to prm (AndOrType a b)
type IfThenElseType (WithGlobalParamA to prm b) (WithGlobalParamA to prm t) # 

pWGParam :: Maybe prm -> a -> WithGlobalParamP prm a Source #

type SuitableForWGParam prm a = (Show a, Show prm, HasOrderCertainly prm prm) Source #

wgprmQuery :: QAArrow to => WithGlobalParamA to prm a -> Maybe (QAId to) -> prm `to` a Source #

Get an approximation of the limit with at least the specified accuracy. (A specialisation of qaMakeQuery for values with global state.)

wgprmQueryA :: QAArrow to => Maybe (QAId to) -> (WithGlobalParamA to prm a, prm) `to` a Source #

wgprmListQueryA :: QAArrow to => Maybe (QAId to) -> ([WithGlobalParamA to prm a], prm) `to` [a] Source #

type WithGlobalParamA to prm a = QA to (WithGlobalParamP prm a) Source #

type WithGlobalParam prm a = WithGlobalParamA (->) prm a Source #

newWGParam :: (QAArrow to, SuitableForWGParam prm a) => Maybe prm -> a -> String -> [AnyProtocolQA to] -> ((Maybe (QAId to), Maybe (QAId to)) -> prm `to` a) -> WithGlobalParamA to prm a Source #

newWGParamSimple :: (QAArrow to, SuitableForWGParam prm a) => Maybe prm -> a -> ((Maybe (QAId to), Maybe (QAId to)) -> prm `to` a) -> WithGlobalParamA to prm a Source #

fmapWGParam :: Arrow to => (a -> b) -> WithGlobalParamA to prm a -> WithGlobalParamA to prm b Source #