How does bc work

Bill Rugolsky Jr. brugolsky at telemetry-investments.com
Wed Oct 11 14:41:01 UTC 2006


On Wed, Oct 11, 2006 at 09:30:13AM +0100, Dan Track wrote:
> Hi
> 
> Does anybody know where bc stores its calucation while calculating a
> number. Basically I'm running 36000000^36000000.
 
Rewriting it as (36^36000000) * (10 ^ 216000000)
will save calculating, storing, and printing the 216M zeros,
and will cut the first factor down to a "mere" 56M digits.

If you want the result in a non-decimal base, you'll have to
factor the product differently.

Regards,

	Bill Rugolsky




More information about the users mailing list