[racket] In need of flexpt

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun May 6 09:05:07 EDT 2012

I am missing flexpt in racket/flonum.

I could live without, and use one of those below.
However it looks as a natural operation to have in racket/flonum.

(define (flexpt1 a x)
  (real->float (expt a x)))

(define (flexpt2 a x)
  (flexp (fl* x (fllog a))))

The second is about twice as fast as the second,
but sacrifices numeriacal precision.

Jens Axel Søgaard

Posted on the users mailing list.