[plt-scheme] mzscheme iota() results differ slightly from spec

From: Terrence Brannon (metaperl at urth.org)
Date: Wed Apr 28 11:12:55 EDT 2004

ifconfig wrote:

>I would try (map inexact->exact (iota 5 0 -0.1))
>
 > (map inexact->exact (iota 5 0 -0.1))
(-1/36028797018963968 -1801439850948199/18014398509481984 
-7205759403792795/36028797018963968 -1351079888211149/4503599627370496 
-3602879701896397/9007199254740992)

>-----Original Message-----
>From: plt-scheme-admin at list.cs.brown.edu
>[mailto:plt-scheme-admin at list.cs.brown.edu] On Behalf Of Terrence Brannon
>Sent: Wednesday, April 28, 2004 2:16 PM
>To: plt-scheme at list.cs.brown.edu
>Subject: [plt-scheme] mzscheme iota() results differ slightly from spec
>
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>According to http://srfi.schemers.org/srfi-1/srfi-1.html#iota
>
>The following should happen:
>
>(iota 5 0 -0.1) => (0 -0.1 -0.2 -0.3 -0.4)
>
>However, under the Cygwin version of MzScheme, I get this:
>
>Welcome to MzScheme version 206, Copyright (c) 2004 PLT Scheme, Inc.
>  
>
>>(require (lib "1.ss" "srfi"))
>>
>>(iota 5 0 -0.1)
>>    
>>
>(-2.7755575615628914e-017 -0.10000000000000003 -0.20000000000000004
>-0.30000000000000004 -0.4)
>  
>
>
>What should I have done in addition to loading the SRFI-1 library in order
>to get the same results?
>
>
>
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20040428/8c3b8554/attachment.html>

Posted on the users mailing list.