4 ms·
No really, computable real store the AST of the computation to lazily compute digits as they are needed (which is an interesting idea but memory hungry at scale
by nestorD 7y ago
No really, computable real store the AST of the computation to lazily compute digits as they are needed (which is an interesting idea but memory hungry at scale) while Haskell approach is more akind to a form of general type deduction.
Note that I first meet computable numbers in Haskell :
https://wiki.haskell.org/Applications_and_libraries/Mathematics#Dynamic_precision_by_lazy_evaluation https://wiki.haskell.org/Applications_and_libraries/Mathemat...
- mbrock 7y agohttp://hackage.haskell.org/package/exact-real-0.12.2 http://hackage.haskell.org/package/exact-real-0.12.2 I’ve used this package to get exact real computations in Haskell which get evaluated at n bits when needed for printing or equality checking etc.