From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f8351dd592017faf X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!p10g2000cwp.googlegroups.com!not-for-mail From: "Adam Beneschan" Newsgroups: comp.lang.ada Subject: Re: Ada 95 ARCTAN function Date: 1 Mar 2007 12:03:05 -0800 Organization: http://groups.google.com Message-ID: <1172779385.153524.259420@p10g2000cwp.googlegroups.com> References: <1172775505.390886.213420@t69g2000cwt.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1172779391 13921 127.0.0.1 (1 Mar 2007 20:03:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 1 Mar 2007 20:03:11 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p10g2000cwp.googlegroups.com; posting-host=66.126.103.122; posting-account=cw1zeQwAAABOY2vF_g6V_9cdsyY_wV9w Xref: g2news2.google.com comp.lang.ada:9630 Date: 2007-03-01T12:03:05-08:00 List-Id: On Mar 1, 11:38 am, Jacob Sparre Andersen wrote: > I don't know where I can find the corresponding specification for the > C function atan2(), so I can't give you a proper comparison. The Unix "man" page for atan2 has some information. It's not as detailed as the Ada manual, because after all this is C and providing specific details would infringe on the inalienable right of C programmers to shoot themselves in the foot. However, the man page I'm looking at does say: (1) that the result is between -pi and pi (inclusive), and (2) the signs of both arguments are used to determine the quadrant of the result. So I'd guess that the semantics are probably the same. -- Adam