comp.lang.ada
 help / color / mirror / Atom feed
From: "Adam Beneschan" <adam@irvine.com>
Subject: Re: Ada 95 ARCTAN function
Date: 1 Mar 2007 12:03:05 -0800
Date: 2007-03-01T12:03:05-08:00	[thread overview]
Message-ID: <1172779385.153524.259420@p10g2000cwp.googlegroups.com> (raw)
In-Reply-To: <ygeps7sycs7.fsf@hugsarin.dmusyd.edu>

On Mar 1, 11:38 am, Jacob Sparre Andersen <spa...@nbi.dk> 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






  reply	other threads:[~2007-03-01 20:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-01 18:58 Ada 95 ARCTAN function saag
2007-03-01 19:38 ` Jacob Sparre Andersen
2007-03-01 20:03   ` Adam Beneschan [this message]
2007-03-04 21:16     ` Keith Thompson
2007-03-01 19:43 ` Dmitry A. Kazakov
2007-03-01 21:39   ` saag
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox