POV-Ray : Newsgroups : povray.beta-test : [std include] wrong odd() behaviour : Re: [std include] wrong odd() behaviour Server Time
26 Sep 2024 17:45:08 EDT (-0400)
  Re: [std include] wrong odd() behaviour  
From: Christoph Hormann
Date: 5 Mar 2002 05:18:01
Message: <3C849B34.B303B763@gmx.de>

> 
> POV 3.5 beta 12
> 
> I'm surprized that odd doesn't work properly. I have posted my version of
> even/odd pair into
> http://news.povray.org/p4hv5ugh4prqd2s2fr7nu0o9vabih5k741%404ax.com month ago
> and it works properly for _any_ float not only integers.
> 
> [...]

The different implementation was chosen for speed reason, i'm not sure
what would be the mathematically correct behavior, if yours is better the
'even(N+1)' version for 'odd()' is probably not that much slower.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 21 Feb. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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