POV-Ray : Newsgroups : povray.general : I have a problem with atan2() : Re: I have a problem with atan2() Server Time
25 Jan 2022 02:20:34 EST (-0500)
  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-2021 Persistence of Vision Raytracer Pty. Ltd.