|
![](/i/fill.gif) |
SharkD wrote:
>>> POV-Ray gives the following error:
>>>
>>> "Parse Error: Floating-point exception detected in function ''. Your function
>>> either attempted a division by zero, used a function outside
>>> its domain or called an internal function with invalid parameters."
>>>
>>> Could somebody please explaing to me why this is and what I can do to fix it?
>> The Error says it all: You're dividing by zero. Somewhere along the
>> cosine of asin(abs(y)) the result is 0, which is what you'll be dividing by.
> I've tried changing the denominator of the fraction to
> max(cos(asin(abs(y))),0.001) so that it doesn't divide by zero, but it has no
> effect.
Mike Williams has the answer, its not just division by zero, but asin(x)
doesn't return proper results for values outside of the -1 to 1 range.
Regards,
Tim
Post a reply to this message
|
![](/i/fill.gif) |