POV-Ray : Newsgroups : povray.beta-test : isosurface problem : Re: isosurface problem Server Time
29 Jul 2024 16:31:31 EDT (-0400)
  Re: isosurface problem  
From: Thorsten Froehlich
Date: 13 Apr 2002 18:11:57
Message: <3cb8ad2d$1@news.povray.org>
In article <3CB8A47F.40E4D194@gmx.de> , Christoph Hormann 
<chr### [at] gmxde>  wrote:

> Results
> with negative base and non integer exponent are not defined, i suppose you
> would have to catch this case inside Povray to make sure to get identical
> results in all versions.

No, it cannot efficiently without needless penalty for all platforms.  The
error is in the Visual C library because (even the ancient 1989 version of)
the C standard specifies pow to return NaN* in this case and to (optionally)
issue an exception/signal.  Unfortunately the Visual C library apparently
fails to do either :-(


    Thorsten


* Actually, it says this will only be the case if the implementation also
complies to IEC 60559:1989 which is basically IEEE 754-1985, aka "THE
floating-point number standard".  Intel FPUs comply to this standard like all
processors available today, so the compiler is outdated or intentionally
breaking the standard to preserve some backward compatibility as M$ usually
calls these bugs :-(

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

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.