[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How does bc work



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]