POV-Ray : Newsgroups : povray.macintosh : NaN? Server Time
22 Dec 2024 22:00:02 EST (-0500)
  NaN? (Message 1 to 4 of 4)  
From: Brandan Whearty
Subject: NaN?
Date: 19 Jun 2001 13:10:35
Message: <3B2F887C.14D36E10@diescreaming.com>
Hey All:

Mostly finished with a little scene file which renders a Mandelbrot in
3D.  It takes a while on my old iMac, but the results look pretty cool.
On hitch I'm still trying to deal with is a returned value of "NaN" from
the iteration macro.  I've searched pov.doc and failed to find what this
value means or how to handle it.  Any thoughts would be appreciated.

Sincerely,
-- Brandan


Post a reply to this message

From: Tom Stone
Subject: Re: NaN?
Date: 19 Jun 2001 15:57:27
Message: <3B2FAFA5.33C5A583@telia.com>
Brandan Whearty wrote:

> Hey All:
>
> Mostly finished with a little scene file which renders a Mandelbrot in
> 3D.  It takes a while on my old iMac, but the results look pretty cool.
> On hitch I'm still trying to deal with is a returned value of "NaN" from
> the iteration macro.  I've searched pov.doc and failed to find what this
> value means or how to handle it.  Any thoughts would be appreciated.

NaN is short for "Not a Number".
There might be several things that can cause it, but most likely is that
your code are trying to divide some value with zero  (i.e. 12/0 = NaN).

That is at least what I have understood, but then again, I find it
troublesome to add one and one together. So I hope that someone will
correct me, if I'm wrong :-)

Tom Stone


Post a reply to this message

From: p
Subject: Re: NaN?
Date: 13 Jul 2001 23:48:40
Message: <3B4FC138.5BA056E8@bestweb.net>
Brandan Whearty wrote:

> Hey All:
>
> Mostly finished with a little scene file which renders a Mandelbrot in
> 3D.  It takes a while on my old iMac, but the results look pretty cool.
> On hitch I'm still trying to deal with is a returned value of "NaN" from
> the iteration macro.  I've searched pov.doc and failed to find what this
> value means or how to handle it.  Any thoughts would be appreciated.
>
> Sincerely,
> -- Brandan

I've gotten that same problem with the Amiga version *and* the windows
version of POV Ray.  I never could track down the cause so I eventually
concluded that it was a C pointer error and thus beyond ny control.  As a
workaround, I added this line near the beginning of the affected scene
file:

 #declare NaN = 0;

It's lame but it worked for me.

Pete


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: NaN?
Date: 16 Jul 2001 15:48:18
Message: <3b534502@news.povray.org>
In article <3B4FC138.5BA056E8@bestweb.net> , p <pog### [at] bestwebnet>  wrote:

> I've gotten that same problem with the Amiga version *and* the windows
> version of POV Ray.  I never could track down the cause so I eventually
> concluded that it was a C pointer error and thus beyond ny control.  As a
> workaround, I added this line near the beginning of the affected scene
> file:

Pete,

Did you read the response from Tom Stone?  He already explained what a "NaN"
is and that it is not an error in POV-Ray but in the scene.


    Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.