| Maintainer | bastiaan.heeren@ou.nl |
|---|---|
| Stability | provisional |
| Portability | portable (depends on ghc) |
| Safe Haskell | None |
| Language | Haskell2010 |
Domain.Math.Numeric.Views
Description
Synopsis
- naturalView :: View Expr Integer
- naturalNF :: View Expr Integer
- integerView :: View Expr Integer
- integerNF :: View Expr Integer
- decimalFractionView :: View Expr DecimalFraction
- rationalView :: View Expr Rational
- rationalNF :: View Expr Rational
- rationalRelaxedForm :: View Expr Rational
- fractionForm :: View Expr (Integer, Integer)
- rationalApproxView :: View Expr Rational
- mixedFractionView :: View Expr MixedFraction
- mixedFractionNF :: View Expr MixedFraction
- doubleView :: View Expr Double
- doubleNF :: View Expr Double
Natural numbers
naturalView :: View Expr Integer Source #
Non-negative numbers only, also for intermediate results
Integers
integerView :: View Expr Integer Source #
Decimal fractions
decimalFractionView :: View Expr DecimalFraction Source #
Rational numbers
rationalView :: View Expr Rational Source #
like the original defintion, except that this view now also converts floating point numbers (using an exact approximation)
rationalNF :: View Expr Rational Source #
rationalRelaxedForm :: View Expr Rational Source #
rationalApproxView :: View Expr Rational Source #
Mixed fractions
mixedFractionView :: View Expr MixedFraction Source #
mixedFractionNF :: View Expr MixedFraction Source #
Double
doubleView :: View Expr Double Source #