Arbitrary Precision Arithmatic : BigInteger Algorithm
Posted: Wed Nov 13, 2002 12:57 am
Hi,
Followed from the previous mail this is my first posting on sharing algorithms. As lot of problems involves operation on arbitrary precision integer I am starting with this one.
Here is the BigInteger class, as named in Java library. I created this a lot many times in different way. This version is not completed fully. I would like to see comments and improvement suggestion on it. The algorithm on addition, subtraction, multiplication and division are from chapter 4.3 of
Followed from the previous mail this is my first posting on sharing algorithms. As lot of problems involves operation on arbitrary precision integer I am starting with this one.
Here is the BigInteger class, as named in Java library. I created this a lot many times in different way. This version is not completed fully. I would like to see comments and improvement suggestion on it. The algorithm on addition, subtraction, multiplication and division are from chapter 4.3 of