[gambit-list] (* n 1.0) works as an exact->inexact for all integer n:s except for 0, is that intended?

Bradley Lucier lucier at math.purdue.edu
Fri Mar 7 10:54:58 EST 2014


On 03/07/2014 10:53 AM, Pierpaolo Bernardi wrote:
>
> High quality implementations will return exact answer when possible.
> Another example is the square root of an exact square: try (sqrt 4) in
> various implementations, or (sin 0), or other special angles.

Try (sqrt +2i) or (expt -1 1/3) in Gambit ;-).

Brad



More information about the Gambit-list mailing list