[plt-scheme] Large Number Exponents

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Feb 7 15:53:26 EST 2010

Are you on a 64-bit platform? There was a bug in 'expt' that was fixed  
in 4.2.4.



On Feb 7, 2010, at 1:19 PM, Jay Riddle <jcriddle4 at yahoo.com> wrote:

>
> I was wondering if it was a bug or just the side effect of the  
> implementation.  I just upgraded to from 4.1.5 to 4.2.4 and it looks  
> like it is working now.  I wonder what caused it?
>
> Thanks
>
> --JayR
>
>
>
> ----- Original Message ----
> From: Matthias Felleisen <matthias at ccs.neu.edu>
> To: Jay Riddle <jcriddle4 at yahoo.com>
> Cc: plt-scheme at list.cs.brown.edu
> Sent: Sun, February 7, 2010 1:06:51 PM
> Subject: Re: [plt-scheme] Large Number Exponents
>
>
> I can't repeat this in 4.2.4.2, built a week ago:
>
>> Welcome to DrScheme, version 4.2.4.2-svn3feb2010 [3m].
>> Language: scheme.
>>> (remainder (expt 4000000000 1000) 100)
>> 0
>
>
>
> On Feb 7, 2010, at 2:56 PM, Jay Riddle wrote:
>
>>
>> Why does the math on this suddenly change when I get to 4000000000?
>>
>>> (remainder (expt 4000000 1000) 100)
>> 0
>>> (remainder (expt 40000000 1000) 100)
>> 0
>>> (remainder (expt 400000000 1000) 100)
>> 0
>>> (remainder (expt 4000000000 1000) 100)
>> 76
>>>
>>
>> _________________________________________________
>> For list-related administrative tasks:
>> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.