Exact rational multiples of pi (and integer powers of pi) https://github.com/dmcclean/exact-pi/

Version on this page:
LTS Haskell 13.25:
Stackage Nightly 2019-06-12:
Latest on Hackage:

See all snapshots exact-pi appears in

MIT licensed by Douglas McClean
Maintained by douglas.mcclean@gmail.com

Module documentation for

There are no documented modules for this package.


Exact rational multiples of pi (and integer powers of pi) in Haskell

Build Status Hackage Version Stackage version


  • Bump base dependency.
  • Resolve compiler warnings.

  • Change implementation of ‘rationalApproximations’ to use Chudnovsky’s approximations.

  • Comply with NoStarIsType pragma.

  • Add Semigroup ExactPi instance.

  • Bump base dependency.

  • Fixed infinite loop in definition of negate.

  • Added function for computing rational approximations of ExactPi values.

  • Added simpler constraints for converting ExactPi types to terms with the minimal context.

  • Added support for exactly comparing values.

  • Added a type-level representation of ExactPi values.

  • Fixed a bug in recip.
  • Fixed approximation of exact values with a negative exponent for pi.

  • Fixed a missing case in isZero.

  • Added support for converting to exact integers or exact rationals.

  • Removed dependency on groups package, since it appears not to be widely used.
  • Fixed a missing case alternative in recip.

  • Added support for GHC 7.8.
Depends on 2 packages:
Used by 3 packages:
comments powered byDisqus