I have speeded up the procedure a little bit by avoiding to recompute the inverse of the logarithm of the base each time the procedure is called. Please let me know whether or not you want the new version. In that case I'll send you the new version. Jos
> -----Original Message----- > From: Jos Koot [mailto:jos.k...@gmail.com] > Sent: miƩrcoles, 08 de mayo de 2013 22:24 > To: 'Ryan Culpepper' > Cc: users@racket-lang.org; jos.k...@gmail.com; 'Matthew Flatt' > Subject: RE: [racket] order-of-magnitude (was ~r: formatting > 0.0 with 'exponential and #:precision) > > Attached an order-of-magnitude with optional base argument. > > May be you want to replace the current version that I wrote > about one or two > years ago. > > IIRC Matthew Flatt included it in the math. > > File order-of-magnitude.rkt includes a commented out test. > > Jos > > > -----Original Message----- > > From: Ryan Culpepper [mailto:ry...@ccs.neu.edu] > > Sent: miƩrcoles, 08 de mayo de 2013 18:58 > > To: Jos Koot > > Cc: users@racket-lang.org > > Subject: Re: [racket] ~r: formatting 0.0 with 'exponential > > and #:precision > > > > Thanks for the report! I've taken your suggestion for ~r's > > order-of-magnitude estimate. (I didn't change the version in > > racket/math, though, but it seems like a reasonable idea to me.) > > > > Ryan > > > > snip > ____________________ Racket Users list: http://lists.racket-lang.org/users