[racket-dev] plot doesn't plot (inexact->exact: no exact representation for +nan.0)

From: Doug Williams (m.douglas.williams at gmail.com)
Date: Tue Dec 6 16:57:19 EST 2011

It runs fine for me on Racket Version 5.2 [3m], 64-bit, under Windows 7,
with or without the commented lines. I can try on my work machine using the
nightly build in the morning. But I work the plot package pretty heavily
there (using a recent nightly build) with no problems.

On Tue, Dec 6, 2011 at 3:13 AM, Marijn <hkBst at gentoo.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> So I just wanted to repost this to dev for the record.
>
> The program:
>
> ;== start
> #lang racket
>
> (require plot)
>
> ;(plot3d-diffuse-light? #f)
> ;(plot3d-specular-light? #f)
>
> (plot3d (list (surface3d (λ (x y) (+ (sqr x) (sqr y))) -1 1 -1 1
>                           #:label "z = x^2 + y^2")
>                (surface3d (λ (x y) (- (+ (sqr x) (sqr y)))) -1 1 -1 1
>                           #:color 4 #:line-color 4
>                           #:label "z = -x^2 - y^2")))
> ;== end
>
> produces:
>
> inexact->exact: no exact representation for +nan.0
>
> but when the commented lines are uncommented it does plot. The plot
> looks plausible, though apparently it should be possible to drag
> inside the plot area to change the view. This is not possible for me;
> the view is stuck from looking along the xy-plane onto the z-axis.
>
> Matthew has been trying to determine the cause via private email.
> Matthew, has any of the data I provided so far pointed you anywhere?
> Otherwise is there something else I can do to help debug?
>
> Marijn
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.18 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk7d6uIACgkQp/VmCx0OL2yVAQCdEaRC6AuBfrbUtFBXDJF4uBVh
> lJYAoIfI1nkHSURKjhdNeN4qX13I2vnm
> =NTTc
> -----END PGP SIGNATURE-----
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20111206/02cc4338/attachment.html>

Posted on the dev mailing list.