[racket] order-of-magnitude (was ~r: formatting 0.0 with 'exponential and #:precision)

From: Jos Koot (jos.koot at gmail.com)
Date: Wed May 8 18:40:59 EDT 2013

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.koot at gmail.com] 
> Sent: miércoles, 08 de mayo de 2013 22:24
> To: 'Ryan Culpepper'
> Cc: users at racket-lang.org; jos.koot at 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:ryanc at ccs.neu.edu] 
> > Sent: miércoles, 08 de mayo de 2013 18:58
> > To: Jos Koot
> > Cc: users at 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
> 



Posted on the users mailing list.