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

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

AERN2.Real

Contents

Description

Exact real numbers represented by fast-converging Cauchy sequences of MPBalls.

Synopsis

Re-exported dependencies

module AERN2.MP

The type of real numbers

newCR :: QAArrow to => String -> [AnyProtocolQA to] -> ((Maybe (QAId to), Maybe (QAId to)) -> AccuracySG `to` MPBall) -> CauchyRealA to #

newCRCN :: QAArrow to => String -> [AnyProtocolQA to] -> ((Maybe (QAId to), Maybe (QAId to)) -> AccuracySG `to` CN MPBall) -> CauchyRealCNA to #

Sequence ops specialised to reals

realId :: QA to p -> Maybe (QAId to) #

realSources :: QA to p -> [QAId to] #

realRename :: (String -> String) -> SequenceA to a -> SequenceA to a #

realWithAccuracy :: QAArrow to => CauchyRealA to -> AccuracySG `to` MPBall #

Get a ball approximation of the real number with at least the specified accuracy. (A specialisation of qaMakeQuery for Cauchy reals.)

(?) :: QAArrow to => QA to p -> Q p `to` A p infix 1 #

An infix synonym of qaMakeQuery with no source

(-:-) :: (QAArrow to, QAProtocolCacheable p) => QA to p `to` QA to p infix 0 #

An infix synonym of qaRegister

Conversions

type CanBeReal t = CanBeRealA (->) t #

real :: CanBeRealA (->) t => t -> CauchyReal #

realA :: CanBeRealA to t => t -> CauchyRealA to #

type CanBeComplex t = CanBeComplexA (->) t #

Constants

pi :: CauchyReal #

To get pi in an arbitrary arrow, use piA.

piA :: QAArrow to => CauchyRealA to #

Mini demos