Multi Precision Math

Cay Horstmann horstman at sjsumcs.sjsu.edu
Tue Dec 19 15:06:47 AEST 1989


In article <1989Dec18.051009.1313 at usenet.ins.cwru.edu> mitch at alpha.ces.cwru.edu (Mitchell N. Perilstein) writes:
>Does anyone know about a multiple precision arithmetic library?  Yea, I've
>got `mp', but something more flexible and better documented is required.
>Wasn't it in mod.sources ages back?
>
>Thanks in advance for your reply.  				
>Mitch

There is a very nice library in T.Hansen, "C++ Answer Book", Addison-Wesley
1990 (!)

C++ is really nice for that kind of stuff because of the operator overloading.
It is a lot more fun to write 
	Bignum x,y;
	... x+y

than bignum_add( x, y ). I wrote some code to deal with polynomials over
finite fields and, since one can overload the () operator, it even makes
sense to write
	Poly f;
	Elem a;
	... f(a)...
Cay



More information about the Comp.unix.questions mailing list