>Nit picking:
>
>If I recall correctly
>googol = power(10, 100)
Not nitpicking, Carl--correcting my error :-)
Here's a C function to calculate a googolplex, if you have enough computer
time. It could probably be converted to Lingo and adapted to calculate 2 ^
3600.
int main (int argc, char *argv[])
{
int *vals, *ptr, index, max;
if (argc == 2)
max = atoi (argv[1]);
else
max = 100;
printf ("1");
if ((vals = malloc ((max + 1) * sizeof (int))) == NULL)
{
fprintf (stderr, "Error allocating memory.\n");
return 1;
}
memset (vals, '\0', (max + 1) * sizeof (int));
while (!vals[max])
{
*(ptr = vals) += 1;
while (*ptr == 10)
{
*ptr++ = 0;
*ptr += 1;
} printf ("0");
} printf ("\n");
free (vals);
}
Cordially,
Kerry Thompson
Learning Network
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]