Re: A quick answer's better:

From: Matthew Hiller (matthew.hiller@yale.edu)
Date: Sun Dec 12 1999 - 22:39:19 EST


On Sun, 12 Dec 1999, Shawn Bayern wrote:

> > Is there a good UNIX tool for doing modular arithmetic, short of
> > writing snippets of C using libgmp? bc is very slow if you give it
> > things like (14^96568) % 99907.
>
> Well, what did you expect?! :)
>
> My general advice: always use higher-level tools when you can and when
> they're fast enough. In this case, don't bother writing "snippets of C"
> and libgmp when you can write functions in bc.

        Aha! There's a web-based frontend to gmp at the project's
homepage. I type in my expression, it does the right thing.

Matt



This archive was generated by hypermail 2b29 : Wed Apr 27 2005 - 03:30:03 EDT