POV-Ray : Newsgroups : povray.advanced-users : Square roots of negative numbers in isosurfaces? : Re: Square roots of negative numbers in isosurfaces? Server Time
2 Nov 2024 07:27:57 EDT (-0400)
  Re: Square roots of negative numbers in isosurfaces?  
From: david sharp
Date: 10 Jan 2000 11:45:33
Message: <387a0cad@news.povray.org>
david sharp <dsh### [at] interportnet> wrote in message
news:387a0473@news.povray.org...
>
> Ron Parker <ron### [at] povrayorg> wrote in message
> news:387a0293@news.povray.org...
> > On Mon, 10 Jan 2000 10:55:52 -0500, david sharp wrote:
> > >The isosurface stuff converts x to absolute value of x
> > >before trying to use the ^. This is just to avoid many floating
> > >point errors.  The isosurface code does the same conversion
> > >before applying sqrt() or ln().
> >
> > Does it only do that for fractional exponents, or does it also
> > do it for odd integer exponents?
>
> Always.

No, not always. (I should have actually checked before replying)
there is a ffloor test to distinguish integers from fractions.


Post a reply to this message

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