On 23-Sep-09, at 12:51 PM, John Cowan wrote: > Ray Dillinger scripsit: > >> As an aside, I'm interested in how this function is implemented. > > It probably notices that 1/3 is the reciprocal of an integer, and > applies > an exact method. (expt 27 2/3) returns 8.999999999999998.
MIT-Scheme yes, but not Gambit: % gsi Gambit v4.5.2 > (expt 27 2/3) 9 Brad Lucier wrote Gambit's implementation of expt, and most of the rest of the numerical library. Perhaps he can comment on the algorithm he used. Marc _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
