|
From: | Michael D. Godfrey |
Subject: | Re: [Octave-bug-tracker] [bug #37379] atan2 and other trig functions lack documentation |
Date: | Sun, 23 Sep 2012 17:40:00 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 |
On 09/23/2012 02:09 PM, Rik wrote:
This is very helpful. I will work on a documentation patch. UnlessOctave's behavior is defined by the ISO/IEC 9899 standard. First, that means that atan2 is defined over the range [-pi,pi] inclusive. Second, the behavior of special values is mandated in section Annex F.9.1.4. I'll quote them for ease. I don't know if it is worth documenting them all inside Octave or whether you want to write a patch that refers to the ISO standard. you think otherwise, it would seem best to refer to the ISO standard (I assume that it is available on the web). Have you checked that atan2 actually matches the standard? I will also check on what Matlab thinks. Michael |
[Prev in Thread] | Current Thread | [Next in Thread] |