POV-Ray : Newsgroups : povray.advanced-users : Divide by Zero Error ? : Re: Divide by Zero Error ? Server Time
4 Jul 2024 12:29:41 EDT (-0400)
  Re: Divide by Zero Error ?  
From: Nieminen Mika
Date: 9 Aug 1999 06:14:38
Message: <37aeaa0e@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote:
:> : #declare Y = 0;
:> :                      <X, Y, sin(X/Y)>, 0.1
:> 
:>   You should always avoid this kind of divisions.

:   Can I assume this is because before the count is incremented there is
: a zero value for the division ?

  Yeah. You set Y to 0 and then calculate X/Y. This causes division by 0,
of course.
  (I don't know if this is what is making povray to crash, but you should
always avoid this kind of problems anyways)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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