Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Hi.
Fixed on my local.
The following results is what you expected?
(log (expt 2 1024)) => 709.782712893384
(R (B #x162E42FEFA39F -39) 0.) => 390207173010335/549755813888+0.0i
(inexact 390207173010335/549755813888) => 709.7827128933841
On the other hand Ypsilon returns follows.
(R (B #x162E42FEFA39F -39) 0.) => 709.7827128933841+0.0i
The result of make-rectangular should be inexact?, when one argument is inexact
and
the
other is exact.
I've searched R6RS, but not sure about the result.
Cheers.
Original comment by hige...@gmail.com
on 31 May 2010 at 7:49
>The following results is what you expected?
>
> (log (expt 2 1024)) => 709.782712893384
>
> (R (B #x162E42FEFA39F -39) 0.) => 390207173010335/549755813888+0.0i
>
> (inexact 390207173010335/549755813888) => 709.7827128933841
Yes.
> The result of make-rectangular should be inexact?,
> when one argument is inexact and the other is exact.
I have no clear idea either. However keeping exactness when possible looks
fine.
Original comment by mrc....@gmail.com
on 31 May 2010 at 8:36
Thanks commited.
http://github.com/higepon/mosh/commit/b4751c8da3e13029ff5a51152043695824f685f7
Original comment by hige...@gmail.com
on 31 May 2010 at 12:32
Original issue reported on code.google.com by
mrc....@gmail.com
on 31 May 2010 at 7:16