Re: Ada 95 ARCTAN function



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



.