Mail Archives: djgpp/1998/10/16/16:05:11
Guruman wrote:
>
> Are there any add-on packages (or hacks) for DJGPP that provide
> extra-large precision functionality? I have seen products of this nature
for
> other compilers, but wouldn't know where to begin modifying them to
support
> DJGPP.
>
The last chapter of the book "Numerical Recipes in C" deals with arithmetic
at arbitary precision. The authors give C-code to carry out arithmetic
operations on numbers base 255, represented as character strings. They also
present an example program to return pi to arbitary precision (thousands of
decimal digits). I have just compiled this using DJGPP/RHIDE and it seems
to work well.
There is an on-line version of "Numerical Recipes" at http://www.nr.com
David
- Raw text -