|
![](/i/fill.gif) |
Simon Wall nous apporta ses lumieres en ce 2007/07/03 09:39:
> Hi,
>
> I'm new to POV ray and I am trying to plot a mathematical function with an
> isosurface. The problem is, I have a term which is z*z/(x*x + y*y + z*z)
> which should be 1 for z=y=z=0, however pov doesn't like it and thinks it is
> dividing by 0.
>
> Anyone know how to get round this?
>
>
It don't think it's dividing by zero, it is.
with x=y=z=0 you have: 0*0/(0*0+0*0+*0*)= 0/0 whitch is undefined.
Just add a very small value to both terms:(z*z+1e-9)/(x*x+y*y+z*z+1e-9)
--
Alain
-------------------------------------------------
Post a reply to this message
|
![](/i/fill.gif) |