This is truly very cool project, if need to do math with pretty large numbers, check this out. Saved my ass ;)

This is truly very cool project, if need to do math with pretty large numbers, check this out. Saved my ass ;)

https://github.com/rvelthuis/BigNumbers
https://github.com/rvelthuis/BigNumbers

Comments

  1. The library is marginally useful, since rational arithmetic is a work in progress which in short form would require gcd and lcm, at least, and are trivial to implement, but there are modulo methods over the ring of integers that simplify long integer multiplication greatly.

    An analysis of the algorithms, including O(h) is essential to use anything you can rely on.

    Whenever you see "Multi-precision Integers" used in a title beware, since integers have no precision.

    ReplyDelete
  2. Solved my problems ;) Maybe not useful to all, yet.

    In any case, I think this is very good start and contribution is the key. If something is missing, provide an batch.

    ReplyDelete
  3. What's so funny to me is that Rudy once argued with me years ago when I insisted that Delphi needed BigInts and arbitrary precision numbers in the standard library. I recall he told me this wasn't necessary because some Russian guy had written a library and put the code on his blog page "and it probably still compiles". He considered that fact to settle the matter.

    I'm guessing the random Russian blogger's code didn't compile anymore after all. :-)

    ReplyDelete

Post a Comment