[plt-dev] bug in plot?

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Dec 4 09:51:00 EST 2009

On Dec  4, Robby Findler wrote:
> I think that this is a bug in plot. The plot that shows up seems to
> have negative numbers, but this function is positive everywhere. Is it
> possible this is an ffi bug?
> 
> (plot (line (λ (x) (expt (expt pi x) x)))
>       #:x-min -10
>       #:x-max 10
>       #:y-min -100000
>       #:y-max 100000)

Looks like some kind of a problem in the way it draws really big
numbers.  I don't remember the details, but I think that it calls out
to Scheme to return the numbers, but the drawing etc is all in C.
(For no good reason -- the whole thing can be done much better in
Scheme....)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the dev mailing list.