[Haskell-cafe] ANN: exact-pi 0.1
andrew.gibiansky at gmail.com
Thu Apr 9 23:50:38 UTC 2015
Why is this hard-coded to pi? Is there a particular reason it cannot be
used for any irrational number?
On Thu, Apr 9, 2015 at 12:36 PM, Douglas McClean <douglas.mcclean at gmail.com>
> I'm announcing the release of the new exact-pi package.
> It provides a type that exactly represents all rational multiples of
> integer powers of pi. Because it's closed under multiplication and taking
> of reciprocals, it's useful for computing exact conversion factors between
> physical units. In order to provide full Num and Floating instances there
> is also a representation for approximate values.
> I'm not sure if this will be of use to anyone else, but it is nice and
> self-contained so I thought I would put it out there.
> -Doug McClean
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe