aern2-real-0.1.0.2: 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 Source #

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

Sequence ops specialised to reals

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

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

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

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

An infix synonym of qaMakeQuery with no source

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

An infix synonym of qaRegister

Conversions

type CanBeReal t = CanBeRealA (->) t Source #

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

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

Constants

pi :: CauchyReal Source #

To get pi in an arbitrary arrow, use piA.

Mini demos