POV-Ray : Newsgroups : povray.general : I have a problem with atan2() : Re: I have a problem with atan2() Server Time
29 May 2024 16:30:38 EDT (-0400)
  Re: I have a problem with atan2()  
From: Kenneth
Date: 17 Oct 2021 14:15:00
Message: <web.616c67f3f55768364cef624e6e066e29@news.povray.org>
kurtz le pirate <kur### [at] gmailcom> wrote:
> Clear and precise answer. I was misled by the description of the
> function in the documentation.

I would be mislead by that too. The docs imply that *a value* will be returned
(not a domain error message)-- but "The appropriate value when B is zero would
be plus AND minus infinity", as Alain has mentioned. Which naturally triggers a
domain-error. Seems to me that the error message should be worded more
appropriately, at least. Or the docs should include this bit of info, for users
who may not know the math details of what happens when B=0.

Post a reply to this message

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