|
![](/i/fill.gif) |
In article <38838a59@news.povray.org> , ron### [at] povray org (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] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |