variable-precision: variable-precision floating point
Software floating point with type-tagged variable mantissa precision,
implemented using a strict pair of Integer
and Int
scaled alike
to decodeFloat
. Version 0.4 adds more number-type-agnostic numerical
algorithms (sin
, cos
, tan
).
Instances of the usual numeric type classes are provided, along with additional operators (with carefully chosen fixities) to coerce, adjust and reify precisions.
The intention with this library is to be relatively simple but still useful, refer to the documentation for caveats concerning accuracy and assorted ill-behaviour.
Usage with ghc(i)-7.0.4 might require -fcontext-stack=100
.
[Skip to Readme]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
fast | Enable optimisations requiring recent integer-gmp | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- variable-precision-0.4.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.1, 0.2, 0.2.1, 0.3.1, 0.4 |
---|---|
Change log | CHANGES |
Dependencies | base (>=3 && <6), complex-generic (>=0.1.1 && <0.2), floatshow (>=0.2 && <0.3), integer-gmp (>=0.4), type-level-natural-number (>=1 && <2) [details] |
License | BSD-3-Clause |
Copyright | (c) 2012 Claude Heiland-Allen |
Author | Claude Heiland-Allen |
Maintainer | claude@mathr.co.uk |
Category | Math |
Home page | https://gitorious.org/variable-precision |
Source repo | head: git clone git://gitorious.org/variable-precision/variable-precision.git this: git clone git://gitorious.org/variable-precision/variable-precision.git(tag v0.4) |
Uploaded | by ClaudeHeilandAllen at 2013-02-18T22:30:30Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 4160 total (17 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |