POV-Ray : Newsgroups : povray.bugreports : Erroneous edge case trigonometric function values : Re: Erroneous edge case trigonometric function values Server Time
19 Oct 2025 03:21:39 EDT (-0400)
  Re: Erroneous edge case trigonometric function values  
From: Bald Eagle
Date: 16 Oct 2025 06:30:00
Message: <web.68f0c8e3dc2f5cb91f9dae3025979125@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:

> This isn't so much a bug as a floating point limitation.  Pi/2 has no
> exact representation in binary, so you never get exactly 90 degrees.

I figured it was something along those lines -

which is why I was attempting a quick experimental workaround with select ().

However:  I was looking at it from the perspective of it being a "bug" since
there might be sufficient user expectation for - something - to massage that
little wrinkle so it doesn't affect the end result so drastically.

I was just wondering if perhaps there were other software packages or algorithms
to addrress the issue.

It also doesn't explain why the left endpoint gets moved significantly down and
to the left, when it's the value of the right endpoint that's experiencing the
numerical issue.

And that's where I think I've discovered a REAL bug in the computation of the
cylinder.



- BW


Post a reply to this message


Attachments:
Download 'trigfunctions.png' (58 KB)

Preview of image 'trigfunctions.png'
trigfunctions.png


 

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