POV-Ray : Newsgroups : povray.advanced-users : Square roots of negative numbers in isosurfaces? : Re: Square roots of negative numbers in isosurfaces? Server Time
30 Jul 2024 12:27:31 EDT (-0400)
  Re: Square roots of negative numbers in isosurfaces?  
From: Thorsten Froehlich
Date: 17 Jan 2000 19:35:05
Message: <3883b539@news.povray.org>
In article <38838a59@news.povray.org> , ron### [at] povrayorg (Ron Parker)
wrote:

> Presumably, pow(x,y) itself does something when presented
> with invalid parameters,

The docs I have say this:

The macro pow(x,y) returns x raised to the power yx xy.
If x is +0.0 and y is negative, then pow returns +inf and signals divide by
zero.  If x is -0.0, and y is integral and negative, then pow signals divide
by zero and returns +inf if y is even, or -inf if y is odd.
The function pow returns NaN and signals invalid if:
both x and y are 0.0, or
x is +-inf and y is 0.0, or
x is 1.0 and y is +-inf, or
x is -0.0 or negative and y is non-integral.


     Thorsten


____________________________________________________
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.