Re: atan2 documentation bugs for 7.3 and 7.2 - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: atan2 documentation bugs for 7.3 and 7.2
Date
Msg-id 200209110256.g8B2uNl04163@candle.pha.pa.us
Whole thread Raw
In response to atan2 documentation bugs for 7.3 and 7.2  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-bugs
OK, patch applied.

---------------------------------------------------------------------------

Bruno Wolff III wrote:
> In the section on mathematical functions the following is given for atan2:
> atan2(x, y) inverse tangent of a/x
>
> I believe the correct version should either be:
> atan2(y, x) inverse tangent of y/x
> or
> atan2(x, y) inverse tangent of x/y
>
> I beleive the documentation was also wrong for 7.2 where it was:
> atan2(x, y) inverse tangent of y/x
>
> The postgres functions seems to be the same as glibc function of the same
> name when has the following man information:
>        double atan2(double y, double x);
>
> DESCRIPTION
>        The atan2() function calculates the arc tangent of the two
>        variables x and y.  It is similar to calculating  the  arc
>        tangent  of y / x, except that the signs of both arguments
>        are used to determine the quadrant of the result.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
Index: func.sgml
===================================================================
RCS file: /cvsroot/pgsql-server/doc/src/sgml/func.sgml,v
retrieving revision 1.120
diff -c -r1.120 func.sgml
*** func.sgml    2 Sep 2002 05:53:23 -0000    1.120
--- func.sgml    11 Sep 2002 02:54:46 -0000
***************
*** 743,749 ****
         <entry><function>atan2</function>(<replaceable>x</replaceable>,
          <replaceable>y</replaceable>)</entry>
         <entry>inverse tangent of
!         <replaceable>a</replaceable>/<replaceable>x</replaceable></entry>
        </row>

        <row>
--- 743,749 ----
         <entry><function>atan2</function>(<replaceable>x</replaceable>,
          <replaceable>y</replaceable>)</entry>
         <entry>inverse tangent of
!         <replaceable>x</replaceable>/<replaceable>y</replaceable></entry>
        </row>

        <row>

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: ecpg hackery to get ecpg to compile from FreeBSD ports...
Next
From: Tom Lane
Date:
Subject: Re: make unsuccessful on mac os x 10.2