Re: [racket] In need of flexpt

2012-05-06 Thread Jens Axel Søgaard
2012/5/7 Matthew Flatt : > I'd expect `flexpt' to be the same as `expt', but constrained to flonum > arguments, which would make it the same as > >  (define (flexpt a x) >   (if (and (flonum? a) (flonum? x)) >       (expt a x) >       (error ...s))) > > I agree that it would make a fine addition to

Re: [racket] In need of flexpt

2012-05-06 Thread Matthew Flatt
I'd expect `flexpt' to be the same as `expt', but constrained to flonum arguments, which would make it the same as (define (flexpt a x) (if (and (flonum? a) (flonum? x)) (expt a x) (error ...s))) I agree that it would make a fine addition to `racket/flonum', but is that what you