Compute with the natural numbers, ℕ = { 0, 1, 2, ... }

elm-natural

In this first release I focused mainly on API design and correctness. I verified correctness through:

  1. Extensive testing. Fuzz testing really came in handy. And,
  2. Non-trivial examples (for e.g. computing the first 100 digits of π) which also have there own tests.

The performance is reasonable, for e.g. you can easily use this library to compute with 2048-bit numbers. However, in a future release I will be giving more attention to performance.

5 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.