Shawn O'Donnell writes:
> >Does anyone have any suggestions on how to create an array to hold the value
> >of 1000 factorial?
>
> Do you mean 1000!
>
> That's a super-sized number--something like 10-to-the-2566th power,
> if I am using Sterling's approximation correctly.
>
> I don't kn
Rob Dixon wrote:
> B. Rothstein wrote:
> >
> > Does anyone have any suggestions on how to create an array to hold the value
> > of 1000 factorial?
>
> Hi.
>
> Use Math::BigInt. The program below stores the first 1000 factorials into an
> array and prints out the thousandth, which is 2568 digits lo
[EMAIL PROTECTED] wrote:
> > 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
> 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:
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'
You can stick the result in an array if you want...
--
To unsubscr
B. Rothstein wrote:
>
> Does anyone have any suggestions on how to create an array to hold the value
> of 1000 factorial?
Hi.
Use Math::BigInt. The program below stores the first 1000 factorials into an
array and prints out the thousandth, which is 2568 digits long. It also runs
incredibly quickl
>>Does anyone have any suggestions on how to create an array to hold the
>> value of 1000 factorial?
>
> Do you mean 1000!
>
> That's a super-sized number--something like 10-to-the-2566th power, if
> I am using Sterling's approximation correctly.
>
> I don't know of a numeric type that stores suc
Does anyone have any suggestions on how to create an array to hold the value
of 1000 factorial?
Do you mean 1000!
That's a super-sized number--something like 10-to-the-2566th power,
if I am using Sterling's approximation correctly.
I don't know of a numeric type that stores such animals. If you
is *REALLY* big, this would imply an infinite (or
at least extended) precision integer arithmetic package, and an
implementation of an array of these big integer objects.
The array could then hold the values of (1! .. 1000!) so they would
not need to be recomputed every time they were needed. An e
On Nov 26, 2003, at 1:35 AM, B. Rothstein wrote:
Does anyone have any suggestions on how to create an array to hold the
value
of 1000 factorial?
I'm afraid I don't understand your question. An array holds multiple
values, but 1,000 factorial is a single value. You want an array to
hold all th
Does anyone have any suggestions on how to create an array to hold the value
of 1000 factorial?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
11 matches
Mail list logo