> B. Rothstein wrote:
>> Does anyone have any suggestions on how to create an array to hold the
>> value of 1000 factorial?
>
> This will compute it:
>
> perl -MMath::BigInt -le '$n = Math::BigInt->new("1"); $n *= $_ for
> 2..1000; print $n'
>
in trying to understand this i guess that:
$n = Math::BigInt->new("1");
assigns n a value of 1 and a type "BinInt"
using the "new" proc with-in module "Math::BigInt"
the the usual multiplying of 1000 by the number below it...
Ritchie
> You can stick the result in an array if you want...
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
--
---
fnord
yes im a Concord Engineer, no it never flown!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]